From 16ecf99cceefe73dece4e5dbfb886f51fa928939 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 5 Dec 2016 14:59:44 +0100 Subject: [PATCH] remove onlySurface again (use MeshingSteps instead) --- libsrc/csg/genmesh.cpp | 3 --- libsrc/meshing/meshtype.hpp | 1 - libsrc/meshing/python_mesh.cpp | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libsrc/csg/genmesh.cpp b/libsrc/csg/genmesh.cpp index 49d671d3..76688ccd 100644 --- a/libsrc/csg/genmesh.cpp +++ b/libsrc/csg/genmesh.cpp @@ -794,9 +794,6 @@ namespace netgen if (multithread.terminate || perfstepsend <= MESHCONST_OPTSURFACE) return TCL_OK; - if(mparam.onlySurface) - return TCL_OK; - if (perfstepsstart <= MESHCONST_MESHVOLUME) { multithread.task = "Volume meshing"; diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 2b8d816a..b3950237 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -1112,7 +1112,6 @@ namespace netgen bool check_impossible = 0; int only3D_domain_nr = -1; - bool onlySurface = false; /// int secondorder = 0; diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 6c5d949a..408eb8c9 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -591,7 +591,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) .def(py::init<>()) .def("__init__", [](MP *instance, double maxh, bool quad_dominated, int optsteps2d, int optsteps3d, - int only3D_domain, bool onlySurface) + int only3D_domain) { new (instance) MeshingParameters; instance->maxh = maxh; @@ -599,7 +599,6 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) instance->optsteps2d = optsteps2d; instance->optsteps3d = optsteps3d; instance->only3D_domain_nr = only3D_domain; - instance->onlySurface = onlySurface; }, py::arg("maxh")=1000, py::arg("quad_dominated")=false,