From b911ab22d74707f24442e7de90002998cab9b2d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Fri, 26 Feb 2016 12:19:10 +0100 Subject: [PATCH] fixes for bisect --- libsrc/meshing/bisect.cpp | 2 +- libsrc/meshing/python_mesh.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/bisect.cpp b/libsrc/meshing/bisect.cpp index da993a2f..c6b7afb3 100644 --- a/libsrc/meshing/bisect.cpp +++ b/libsrc/meshing/bisect.cpp @@ -4013,7 +4013,7 @@ namespace netgen const EdgePointGeomInfo & ap2, Point<3> & newp, EdgePointGeomInfo & newgi) const { - cout << "base class edge point between" << endl; + //cout << "base class edge point between" << endl; newp = p1+secpoint*(p2-p1); } diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 17d8f66e..27ffbab9 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -432,7 +432,10 @@ DLL_HEADER void ExportNetgenMeshing() .def ("Refine", FunctionPointer ([](Mesh & self) { - self.GetGeometry()->GetRefinement().Refine(self); + if (self.GetGeometry()) + self.GetGeometry()->GetRefinement().Refine(self); + else + Refinement().Refine(self); })) .def ("BoundaryLayer", FunctionPointer