void SetJacobianRectification( in boolean allowRectification );
boolean GetJacobianRectification();
+ /*!
+ * Set use_deprecated_patch_mesher parameter (compatibility with older versions of Meshgems)
+ *
+ * the use_deprecated_patch_mesher parameter allows to keep the same behaviour than
+ * in salome < 8.3 (meshgems 2.1.11 instead of meshgems >= 2.4.5)
+ */
+ void SetUseDeprecatedPatchMesher( in boolean useDeprecatedPatchMesher );
+ boolean GetUseDeprecatedPatchMesher();
+
/*!
* Set max_number_of_points_per_patch parameter
*
def SetJacobianRectification( self, allowRectification ):
self.Parameters().SetJacobianRectification( allowRectification )
+ ## Set use_deprecated_patch_mesher parameter (compatibility with older versions of Meshgems)
+ #
+ # the use_deprecated_patch_mesher parameter allows to keep the same behaviour than
+ # in salome < 8.3 (meshgems 2.1.11 instead of meshgems >= 2.4.5)
+ #
+ def SetUseDeprecatedPatchMesher( self, useDeprecatedPatchMesher ):
+ self.Parameters().SetUseDeprecatedPatchMesher( useDeprecatedPatchMesher )
+
## Set respect_geometry parameter
#
# This patch independent option can be deactivated to allow MeshGems-CADSurf
// "remove_duplicate_cad_faces", // default = 1
"tiny_edge_avoid_surface_intersections", // default = 1
"debug", // default = 0
+ "use_deprecated_patch_mesher", // default 0
// "tiny_edge_respect_geometry", // default = 0
"" // mark of end
};
_defaultOptionValues["max_number_of_points_per_patch" ] = "0";
_defaultOptionValues["max_number_of_threads" ] = "4";
_defaultOptionValues["rectify_jacobian" ] = "yes";
+ _defaultOptionValues["use_deprecated_patch_mesher" ] = "yes";
_defaultOptionValues["respect_geometry" ] = "yes";
_defaultOptionValues["tiny_edge_avoid_surface_intersections" ] = "yes";
+ _defaultOptionValues["use_deprecated_patch_mesher" ] = "no";
_defaultOptionValues["debug" ] = "no";
if ( hasgeom )
{
}
//=============================================================================
+void BLSURFPlugin_Hypothesis::SetUseDeprecatedPatchMesher( bool useDeprecatedPatchMesher )
+{
+ if ( GetUseDeprecatedPatchMesher() != useDeprecatedPatchMesher )
+ {
+ SetOptionValue( "use_deprecated_patch_mesher", useDeprecatedPatchMesher ? "yes" : "no" );
+ NotifySubMeshesHypothesisModification();
+ }
+}
+//=============================================================================
+bool BLSURFPlugin_Hypothesis::GetUseDeprecatedPatchMesher()
+{
+ return ToBool( GetOptionValue("use_deprecated_patch_mesher", GET_DEFAULT()));
+}
+//=============================================================================
+
void BLSURFPlugin_Hypothesis::SetMaxNumberOfPointsPerPatch( int nb )
throw (std::invalid_argument)
{
void SetJacobianRectificationRespectGeometry( bool allowRectification );
bool GetJacobianRectificationRespectGeometry();
+ void SetUseDeprecatedPatchMesher( bool useDeprecatedPatchMesher );
+ bool GetUseDeprecatedPatchMesher();
+
void SetJacobianRectification( bool allowRectification );
bool GetJacobianRectification();
}
//=============================================================================
+void BLSURFPlugin_Hypothesis_i::SetUseDeprecatedPatchMesher( CORBA::Boolean useDeprecatedPatchMesher )
+{
+ if ( GetUseDeprecatedPatchMesher() != useDeprecatedPatchMesher )
+ {
+ this->GetImpl()->SetUseDeprecatedPatchMesher(useDeprecatedPatchMesher);
+ SMESH::TPythonDump() << _this() << ".SetUseDeprecatedPatchMesher( " << useDeprecatedPatchMesher << " )";
+ }
+}
+//=============================================================================
+CORBA::Boolean BLSURFPlugin_Hypothesis_i::GetUseDeprecatedPatchMesher()
+{
+ return this->GetImpl()->GetUseDeprecatedPatchMesher();
+}
+//=============================================================================
+
void BLSURFPlugin_Hypothesis_i::SetMaxNumberOfPointsPerPatch( CORBA::Long nb ) throw (SALOME::SALOME_Exception)
{
if ( GetMaxNumberOfPointsPerPatch() != nb )
else if ( name == "rectify_jacobian" )
SetJacobianRectification( GetImpl()->ToBool( optionValue ));
+ else if ( name == "use_deprecated_patch_mesher" )
+ SetUseDeprecatedPatchMesher( GetImpl()->ToBool( optionValue ));
+
else if ( name == "respect_geometry" )
SetRespectGeometry( GetImpl()->ToBool( optionValue ));
void SetJacobianRectificationRespectGeometry( CORBA::Boolean allowRectification );
CORBA::Boolean GetJacobianRectificationRespectGeometry();
+ void SetUseDeprecatedPatchMesher( CORBA::Boolean useDeprecatedPatchMesher );
+ CORBA::Boolean GetUseDeprecatedPatchMesher();
+
void SetJacobianRectification( CORBA::Boolean allowRectification );
CORBA::Boolean GetJacobianRectification();
<source>rectify_jacobian</source>
<translation>Rectify Jacobian</translation>
</message>
+ <message>
+ <source>use_deprecated_patch_mesher</source>
+ <translation>use deprecated patch mesher</translation>
+ </message>
<message>
<source>respect_geometry</source>
<translation>Respect geometry</translation>
<source>rectify_jacobian</source>
<translation>Ajustement du Jacobien</translation>
</message>
+ <message>
+ <source>use_deprecated_patch_mesher</source>
+ <translation>use deprecated patch mesher</translation>
+ </message>
<message>
<source>respect_geometry</source>
<translation>Respect de la géométrie</translation>
<source>rectify_jacobian</source>
<translation>ヤコビアンの修正</translation>
</message>
+ <message>
+ <source>use_deprecated_patch_mesher</source>
+ <translation>use deprecated patch mesher</translation>
+ </message>
<message>
<source>respect_geometry</source>
<translation>ジオメトリの尊重</translation>