mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +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();
|
||||
});
|
||||
|
||||
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
|
||||
{
|
||||
BOPAlgo_Builder builder;
|
||||
|
Loading…
Reference in New Issue
Block a user