Revert "new Python function SetGeometryObject to allow visualization of Python-generated…"

This reverts commit 50650d91f9
This commit is contained in:
Matthias Hochsteger 2016-08-25 17:02:37 +02:00
parent 50650d91f9
commit 7f23bacbf5

View File

@ -485,12 +485,6 @@ namespace netgen
} }
namespace netgen
{
extern VisualScene *vs;
extern shared_ptr<Mesh> mesh;
extern shared_ptr<NetgenGeometry> ng_geometry;
}
#ifdef NG_PYTHON #ifdef NG_PYTHON
@ -527,21 +521,6 @@ DLL_HEADER void ExportCSGVis()
{ {
vsgeom.MouseMove(oldx, oldy, newx, newy, mode); vsgeom.MouseMove(oldx, oldy, newx, newy, mode);
})); }));
bp::def("SetGeometryObject", FunctionPointer
([](shared_ptr<CSGeometry> geo)
{
geo->FindIdenticSurfaces(1e-6);
geo->CalcTriangleApproximation(0.01, 20);
ng_geometry = geo;
mesh.reset();
auto avs = new VisualSceneGeometry();
avs->SetGeometry(geo.get());
vs = avs;
vs->SetBackGroundColor(1);
}));
} }
BOOST_PYTHON_MODULE(libcsgvis) BOOST_PYTHON_MODULE(libcsgvis)
{ {