"remove_duplicate_cad_faces", // default = 1
// "create_tag_on_collision", // default = 1
"debug", // default = 0
+ "process_3d_topology", // default = 1
// "remove_tiny_edges", // default = 0
"" // mark of end
};
_defaultOptionValues["rectify_jacobian" ] = "yes";
_defaultOptionValues["respect_geometry" ] = "yes";
_defaultOptionValues["tiny_edge_avoid_surface_intersections" ] = "yes";
+ _defaultOptionValues["process_3d_topology" ] = "no";
_defaultOptionValues["closed_geometry" ] = "no";
_defaultOptionValues["debug" ] = "no";
_defaultOptionValues["discard_input_topology" ] = "no";
//=============================================================================
void BLSURFPlugin_Hypothesis::SetPreCADMergeEdges(bool theVal)
{
- if (theVal != _preCADMergeEdges) {
-// SetTopology(PreCAD);
+ if (theVal != ToBool( GetPreCADOptionValue("merge_edges", GET_DEFAULT()))) {
_preCADMergeEdges = theVal;
SetPreCADOptionValue("merge_edges", theVal ? "yes" : "no" );
NotifySubMeshesHypothesisModification();
void BLSURFPlugin_Hypothesis::SetPreCADRemoveTinyUVEdges(bool theVal)
{
if (theVal != _preCADRemoveTinyUVEdges) {
-// SetTopology(PreCAD);
_preCADRemoveTinyUVEdges = theVal;
NotifySubMeshesHypothesisModification();
}
//=============================================================================
void BLSURFPlugin_Hypothesis::SetPreCADRemoveDuplicateCADFaces(bool theVal)
{
- if (theVal != _preCADRemoveDuplicateCADFaces) {
- // SetTopology(PreCAD);
+ if (theVal != ToBool( GetPreCADOptionValue("remove_duplicate_cad_faces", GET_DEFAULT()))) {
_preCADRemoveDuplicateCADFaces = theVal;
SetPreCADOptionValue("remove_duplicate_cad_faces", theVal ? "yes" : "no" );
NotifySubMeshesHypothesisModification();
//=============================================================================
void BLSURFPlugin_Hypothesis::SetPreCADProcess3DTopology(bool theVal)
{
- if (theVal != _preCADProcess3DTopology) {
- // SetTopology(PreCAD);
+ if (theVal != ToBool( GetPreCADOptionValue("process_3d_topology", GET_DEFAULT()))) {
_preCADProcess3DTopology = theVal;
- AddPreCADOption("process_3d_topology", theVal ? "yes" : "no" );
+ SetPreCADOptionValue("process_3d_topology", theVal ? "yes" : "no" );
NotifySubMeshesHypothesisModification();
}
}
//=============================================================================
void BLSURFPlugin_Hypothesis::SetPreCADDiscardInput(bool theVal)
{
- if (theVal != _preCADDiscardInput) {
- // SetTopology(PreCAD);
+ if (theVal != ToBool( GetPreCADOptionValue("discard_input_topology", GET_DEFAULT()))) {
_preCADDiscardInput = theVal;
SetPreCADOptionValue("discard_input_topology", theVal ? "yes" : "no" );
NotifySubMeshesHypothesisModification();
ToBool( hyp->GetPreCADOptionValue("discard_input_topology" , &orDefault )) ||
ToBool( hyp->GetPreCADOptionValue("merge_edges" , &orDefault )) ||
ToBool( hyp->GetPreCADOptionValue("remove_duplicate_cad_faces", &orDefault )) ||
- ToBool( hyp->GetPreCADOption ("process_3d_topology") , &isOk ) ||
+ ToBool( hyp->GetPreCADOptionValue("process_3d_topology" , &orDefault )) ||
ToBool( hyp->GetPreCADOption ("manifold_geometry") , &isOk ) ||
- hyp->GetPreCADOptionValue("sewing_tolerance") != "5e-4*D" ||
- hyp->GetPreCADProcess3DTopology() );
+ hyp->GetPreCADOptionValue("sewing_tolerance") != "5e-4*D" );
}
//=============================================================================
break;
}
}
- value.resize(len - 2); //cut off "%#"
+ if ( value[ len - 1] == '#' )
+ value.resize(len - 2); //cut off "%#"
}
}
break;
}
}
- value.resize(len - 2); //cut off "%#"
+ if ( value[ len - 1] == '#' )
+ value.resize(len - 2); //cut off "%#"
_customOption2value[optName] = value;
}
}
break;
}
}
- value.resize(len - 2); //cut off "%#"
+ if ( value[ len - 1] == '#' )
+ value.resize(len - 2); //cut off "%#"
}
}