short GetVerbosity();
/*!
- * To optimize merges edges.
+ * To merges edges.
*/
void SetPreCADMergeEdges(in boolean toMergeEdges);
boolean GetPreCADMergeEdges();
boolean GetPreCADDiscardInput();
/*!
- * To help PreCAD treat some very dirty cases.
- * If the treated object is manifold.
+ * Sets the length below which an edge is considered as nano
+ * for the topology processing.
*/
void SetPreCADEpsNano(in double epsNano);
boolean GetPreCADEpsNano();
int _precadMergeEdges = BLSURFPlugin_Hypothesis::GetDefaultPreCADMergeEdges();
int _precadRemoveNanoEdges = BLSURFPlugin_Hypothesis::GetDefaultPreCADRemoveNanoEdges();
int _precadDiscardInput = BLSURFPlugin_Hypothesis::GetDefaultPreCADDiscardInput();
- double _precadEpsNano = BLSURFPlugin_Hypothesis::GetDefaultMinSize();
+ double _precadEpsNano = BLSURFPlugin_Hypothesis::GetDefaultPreCADEpsNano();
if (hyp) {
_preCADMergeEdges(GetDefaultPreCADMergeEdges()),
_preCADRemoveNanoEdges(GetDefaultPreCADRemoveNanoEdges()),
_preCADDiscardInput(GetDefaultPreCADDiscardInput()),
- _preCADEpsNano(GetDefaultMinSize()),
+ _preCADEpsNano(GetDefaultPreCADEpsNano()),
_sizeMap(GetDefaultSizeMap()),
_attractors(GetDefaultSizeMap()),
_classAttractors(GetDefaultAttractorMap()),
bool BLSURFPlugin_Hypothesis::GetDefaultDecimesh() {
return false;
}
+
+//======================================================================
+double BLSURFPlugin_Hypothesis::GetDefaultPreCADEpsNano() {
+ return undefinedDouble(); //1e-4;
+}
static bool GetDefaultDecimesh();
static int GetDefaultVerbosity() { return 10; }
// PreCAD
- static bool GetDefaultPreCADMergeEdges() { return true; }
- static bool GetDefaultPreCADRemoveNanoEdges() { return true; }
+ static bool GetDefaultPreCADMergeEdges() { return false; }
+ static bool GetDefaultPreCADRemoveNanoEdges() { return false; }
static bool GetDefaultPreCADDiscardInput() { return false; }
-// static double GetDefaultPreCADEpsNano() { return undefinedDouble(); }
+ static double GetDefaultPreCADEpsNano();
static TSizeMap GetDefaultSizeMap() { return TSizeMap();}
static TAttractorMap GetDefaultAttractorMap() { return TAttractorMap(); }
myPreCADGroupBox->setEnabled(false);
QGridLayout* aPreCADGroupLayout = new QGridLayout(myPreCADGroupBox);
myPreCADMergeEdges = new QCheckBox(tr("BLSURF_PRECAD_MERGE_EDGES"),myPreCADGroupBox);
- myPreCADMergeEdges->setChecked(true);
aPreCADGroupLayout->addWidget(myPreCADMergeEdges,0,0,1,2);
myPreCADRemoveNanoEdges = new QCheckBox(tr("BLSURF_PRECAD_REMOVE_NANO_EDGES"),myPreCADGroupBox);
- myPreCADRemoveNanoEdges->setChecked(true);
aPreCADGroupLayout->addWidget(myPreCADRemoveNanoEdges,1,0,1,2);
myPreCADEpsNano = new SMESHGUI_SpinBox(myPreCADGroupBox);
myPreCADEpsNano->RangeStepAndValidator(0, COORD_MAX, 10.0, "length_precision");