From 93de43456d0fa347744517cee3d289f718f11fcc Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 18 Jan 2022 18:21:16 +0100 Subject: [PATCH] dont ignore small edges per default, do not set from stl parameters occresthminedgelen ignored restricting meshsize per segment length on edges smaller than stl parameter resthminedgelen which was set from the gui to 0.2. Disable this (can be used by giving minedgelen parameter from python in meshing parameters) --- libsrc/occ/occgenmesh.cpp | 2 +- libsrc/occ/occgeom.hpp | 5 +++-- libsrc/occ/occpkg.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index 643d1d9a..38354bc6 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -27,7 +27,7 @@ namespace netgen #define TCL_ERROR 1 #define DIVIDEEDGESECTIONS 10000 // better solution to come soon -#define IGNORECURVELENGTH 1e-4 +#define IGNORECURVELENGTH 0 #define VSMALL 1e-10 diff --git a/libsrc/occ/occgeom.hpp b/libsrc/occ/occgeom.hpp index 372bcc06..52fe6601 100644 --- a/libsrc/occ/occgeom.hpp +++ b/libsrc/occ/occgeom.hpp @@ -115,10 +115,11 @@ namespace netgen // int resthcloseedgeenable = true; /// Minimum edge length to be used for dividing edges to mesh points - double resthminedgelen = 0.001; + // double resthminedgelen = 0.001; + double resthminedgelen = 1e-4; /// Enable / Disable use of the minimum edge length (by default use 1e-4) - int resthminedgelenenable = true; + int resthminedgelenenable = false; /*! Dump all the OpenCascade specific meshing parameters diff --git a/libsrc/occ/occpkg.cpp b/libsrc/occ/occpkg.cpp index 21cf0822..8df3a289 100644 --- a/libsrc/occ/occpkg.cpp +++ b/libsrc/occ/occpkg.cpp @@ -48,10 +48,10 @@ namespace netgen virtual void SetParameters (Tcl_Interp * interp) { - occparam.resthminedgelen = - atof (Tcl_GetVar (interp, "::stloptions.resthminedgelen", 0)); - occparam.resthminedgelenenable = - atoi (Tcl_GetVar (interp, "::stloptions.resthminedgelenenable", 0)); + // occparam.resthminedgelen = + // atof (Tcl_GetVar (interp, "::stloptions.resthminedgelen", 0)); + // occparam.resthminedgelenenable = + // atoi (Tcl_GetVar (interp, "::stloptions.resthminedgelenenable", 0)); if(auto geo = dynamic_pointer_cast(ng_geometry); geo) geo->SetOCCParameters(occparam); }