mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
Revert "new Python function SetGeometryObject to allow visualization of Python-generated…"
This reverts commit 50650d91f9
This commit is contained in:
parent
50650d91f9
commit
7f23bacbf5
@ -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
|
||||
@ -527,21 +521,6 @@ DLL_HEADER void ExportCSGVis()
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user