From: gdd Date: Tue, 28 Feb 2012 15:50:48 +0000 (+0000) Subject: Add support of internal vertices for BLSURF X-Git-Tag: V6_5_0a1~85 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=607f25cad19938400e6fff1bd093501ec472e207;p=modules%2Fsmesh.git Add support of internal vertices for BLSURF --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index f53fa33e4..3949fca2d 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -5440,6 +5440,36 @@ class Mesh_Triangle(Mesh_Algorithm): AssureGeomPublished( self.mesh, theFace ) return self.params.UnsetEnforcedVertices(theFace) + ## To tell BLSURF to add a node on internal vertices + # @param toEnforceInternalVertices : boolean; if True the internal vertices are added as enforced vertices + # @ingroup l3_hypos_blsurf + def SetInternalEnforcedVertexAllFaces(self, toEnforceInternalVertices): + if self.Parameters(): + # Parameter of BLSURF algo + return self.params.SetInternalEnforcedVertexAllFaces(toEnforceInternalVertices) + + ## To know if BLSURF will add a node on internal vertices + # @ingroup l3_hypos_blsurf + def GetInternalEnforcedVertexAllFaces(self): + if self.Parameters(): + # Parameter of BLSURF algo + return self.params.GetInternalEnforcedVertexAllFaces() + + ## To define a group for the nodes of internal vertices + # @param groupName : string; name of the group + # @ingroup l3_hypos_blsurf + def SetInternalEnforcedVertexAllFacesGroup(self, groupName): + if self.Parameters(): + # Parameter of BLSURF algo + return self.params.SetInternalEnforcedVertexAllFacesGroup(groupName) + + ## To get the group name of the nodes of internal vertices + # @ingroup l3_hypos_blsurf + def GetInternalEnforcedVertexAllFacesGroup(self): + if self.Parameters(): + # Parameter of BLSURF algo + return self.params.GetInternalEnforcedVertexAllFacesGroup() + ## Attractors (BLSURF) ## Sets an attractor on the chosen face. The mesh size will decrease exponentially with the distance from theAttractor, following the rule h(d) = theEndSize - (theEndSize - theStartSize) * exp [ - ( d / theInfluenceDistance ) ^ 2 ]