Merge branch 'occ_minedgelen' into 'master'

dont ignore small edges per default, do not set from stl parameters

See merge request jschoeberl/netgen!467
This commit is contained in:
Joachim Schöberl 2022-01-20 16:20:15 +00:00
commit 1f23acac21
3 changed files with 8 additions and 7 deletions

View File

@ -27,7 +27,7 @@ namespace netgen
#define TCL_ERROR 1 #define TCL_ERROR 1
#define DIVIDEEDGESECTIONS 10000 // better solution to come soon #define DIVIDEEDGESECTIONS 10000 // better solution to come soon
#define IGNORECURVELENGTH 1e-4 #define IGNORECURVELENGTH 0
#define VSMALL 1e-10 #define VSMALL 1e-10

View File

@ -115,10 +115,11 @@ namespace netgen
// int resthcloseedgeenable = true; // int resthcloseedgeenable = true;
/// Minimum edge length to be used for dividing edges to mesh points /// 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) /// 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 Dump all the OpenCascade specific meshing parameters

View File

@ -48,10 +48,10 @@ namespace netgen
virtual void SetParameters (Tcl_Interp * interp) virtual void SetParameters (Tcl_Interp * interp)
{ {
occparam.resthminedgelen = // occparam.resthminedgelen =
atof (Tcl_GetVar (interp, "::stloptions.resthminedgelen", 0)); // atof (Tcl_GetVar (interp, "::stloptions.resthminedgelen", 0));
occparam.resthminedgelenenable = // occparam.resthminedgelenenable =
atoi (Tcl_GetVar (interp, "::stloptions.resthminedgelenenable", 0)); // atoi (Tcl_GetVar (interp, "::stloptions.resthminedgelenenable", 0));
if(auto geo = dynamic_pointer_cast<OCCGeometry>(ng_geometry); geo) if(auto geo = dynamic_pointer_cast<OCCGeometry>(ng_geometry); geo)
geo->SetOCCParameters(occparam); geo->SetOCCParameters(occparam);
} }