From 30c48a8df0cdf0d1e0fbe5932e32357f20a57189 Mon Sep 17 00:00:00 2001 From: nsr Date: Fri, 30 Oct 2020 18:33:44 +0530 Subject: [PATCH] connected closeedgeenable and closeedgefact to mparam.closeedgefac, and added comments --- nglib/nglib.cpp | 5 ++++- nglib/nglib.h | 11 +++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/nglib/nglib.cpp b/nglib/nglib.cpp index c030e333..a68b4e48 100644 --- a/nglib/nglib.cpp +++ b/nglib/nglib.cpp @@ -1116,7 +1116,7 @@ namespace nglib mparam.meshsizefilename = meshsize_filename; else mparam.meshsizefilename = ""; - + mparam.optsteps2d = optsteps_2d; mparam.optsteps3d = optsteps_3d; @@ -1144,6 +1144,9 @@ namespace nglib stlparam.resthlinelengthfac = linelengthfact; stldoctor.geom_tol_fact = stlgeom_tol_fact; + + if(closeedgeenable) + mparam.closeedgefac = closeedgefact; } // ------------------ End - Meshing Parameters related functions -------------------- diff --git a/nglib/nglib.h b/nglib/nglib.h index c631b0a8..a702c8e2 100644 --- a/nglib/nglib.h +++ b/nglib/nglib.h @@ -136,12 +136,12 @@ public: int parallel_meshing; //!< Enable / Disable parallel meshing int nthreads; //!< Set number of threads to use - double opterrpow; + double opterrpow; //!< Set power of error (to approximate max err optimization) int delaunayenable; //!< Enable / Disable delaunay int blockfillenable; //!< Enable / Disable block fill double blockfilldist; //!< Enable / Disable block fill distance int maxoutersteps; //!< Set max number of outer steps - int only3D_domain_nr; + int only3D_domain_nr; //!< Select domain to perform volume meshing ignoring others. (0 => ignore none) int try_hexes; //!< Enable / Disable hex-meshing double surfcurvfact; //!< Set STL - surface curvature @@ -179,6 +179,13 @@ public: - #check_overlapping_boundary: 1 - #parallel_meshing: 1 - #nthreads: 4 + - #opterrpow: 2 + - #delaunayenable: 1 + - #blockfillenable = 1 + - #blockfilldist = 0.1 + - maxoutersteps = 10 + - only3D_domain_nr = 0 + - try_hexes = 1 - #surfcurvfact: 2 - #chartdistfact: 1.2 - #edgeanglefact: 1