mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
add occ Compound Function
This commit is contained in:
parent
5f64c127f8
commit
80ba06d454
@ -1624,6 +1624,17 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
|||||||
return builder.Shape();
|
return builder.Shape();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
m.def("Compound", [](std::vector<TopoDS_Shape> shapes)
|
||||||
|
-> TopoDS_Shape
|
||||||
|
{
|
||||||
|
BRep_Builder builder;
|
||||||
|
TopoDS_Compound comp;
|
||||||
|
builder.MakeCompound(comp);
|
||||||
|
for(auto& s : shapes)
|
||||||
|
builder.Add(comp, s);
|
||||||
|
return comp;
|
||||||
|
});
|
||||||
|
|
||||||
m.def("Glue", [] (TopoDS_Shape shape) -> TopoDS_Shape
|
m.def("Glue", [] (TopoDS_Shape shape) -> TopoDS_Shape
|
||||||
{
|
{
|
||||||
BOPAlgo_Builder builder;
|
BOPAlgo_Builder builder;
|
||||||
|
Loading…
Reference in New Issue
Block a user