mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +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 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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user