From 7f23bacbf56f4af774fa3f484ad0862b537aa13f Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 25 Aug 2016 17:02:37 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"new=20Python=20function=20SetGeometry?= =?UTF-8?q?Object=20to=20allow=20visualization=20of=20Python-generated?= =?UTF-8?q?=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 50650d91f933b152ac5020d7aa3acab6c7bcfc23 --- libsrc/csg/vscsg.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/libsrc/csg/vscsg.cpp b/libsrc/csg/vscsg.cpp index 14ac1aee..cb4154fa 100644 --- a/libsrc/csg/vscsg.cpp +++ b/libsrc/csg/vscsg.cpp @@ -485,12 +485,6 @@ namespace netgen } -namespace netgen -{ - extern VisualScene *vs; - extern shared_ptr mesh; - extern shared_ptr 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 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) {