mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
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:
commit
1f23acac21
@ -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