diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 8f5967a5..ec7c44d7 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -496,6 +496,15 @@ DLL_HEADER void ExportCSG() }), (bp::arg("self"), bp::arg("pmin"), bp::arg("pmax")) ) + .def("Draw", FunctionPointer + ([] (shared_ptr self) + { + self->FindIdenticSurfaces(1e-6); + self->CalcTriangleApproximation(0.01, 20); + ng_geometry = self; + }), + (bp::arg("self")) + ) .add_property ("ntlo", &CSGeometry::GetNTopLevelObjects) ;