mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
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)
This commit is contained in:
parent
a6a7d278dc
commit
93de43456d
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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<OCCGeometry>(ng_geometry); geo)
|
||||
geo->SetOCCParameters(occparam);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user