mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
add method Draw() to CSG class in Python
This commit is contained in:
parent
a9c0525891
commit
8078c25f55
@ -496,6 +496,15 @@ DLL_HEADER void ExportCSG()
|
||||
}),
|
||||
(bp::arg("self"), bp::arg("pmin"), bp::arg("pmax"))
|
||||
)
|
||||
.def("Draw", FunctionPointer
|
||||
([] (shared_ptr<CSGeometry> self)
|
||||
{
|
||||
self->FindIdenticSurfaces(1e-6);
|
||||
self->CalcTriangleApproximation(0.01, 20);
|
||||
ng_geometry = self;
|
||||
}),
|
||||
(bp::arg("self"))
|
||||
)
|
||||
.add_property ("ntlo", &CSGeometry::GetNTopLevelObjects)
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user