// but it is useful that the user can change it to disable all preprocessing options
"remove_tiny_uv_edges", // default = 1
"compute_ridges", // true
+ "split_overconstrained_surface_edges", // default = 0
"" // mark of end
};
const char* preCADintOptionNames[] = { // "manifold_geometry", // default = 0
_defaultOptionValues["remove_tiny_uv_edges" ] = "no";
_defaultOptionValues["required_entities" ] = "respect";
_defaultOptionValues["sewing_tolerance" ] = "5e-4*D";
+ _defaultOptionValues["split_overconstrained_surface_edges" ] = "no";
_defaultOptionValues["tags" ] = "respect";
_defaultOptionValues["compute_ridges" ] = "yes";
}
{
return ToDbl( GetPreCADOptionValue("sewing_tolerance", GET_DEFAULT()));
}
+
+//=============================================================================
+void BLSURFPlugin_Hypothesis::SetSplitOverConstrainedSurfaceEdges( bool isOverConstrained )
+{
+ if ( GetSplitOverConstrainedSurfaceEdges() != isOverConstrained )
+ {
+ SetPreCADOptionValue("split_overconstrained_surface_edges", isOverConstrained ? "yes" : "no" );
+ NotifySubMeshesHypothesisModification();
+ }
+}
//=============================================================================
+bool BLSURFPlugin_Hypothesis::GetSplitOverConstrainedSurfaceEdges()
+{
+ return ToBool( GetPreCADOptionValue("split_overconstrained_surface_edges", GET_DEFAULT()));
+}
+//=============================================================================
void BLSURFPlugin_Hypothesis::SetTags( const std::string& howToTreat )
{
if ( howToTreat != "respect" && howToTreat != "ignore" && howToTreat != "clear" )