add method Draw() to CSG class in Python

This commit is contained in:
Matthias Hochsteger 2016-08-31 18:29:33 +02:00
parent a9c0525891
commit 8078c25f55

View File

@ -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)
;