Salome HOME
rnc: Added UnsetAttractorGeom method in smeshDC.py
[modules/smesh.git] / src / SMESH_SWIG / smeshDC.py
index 9cfdfd06e2b52a6b42dc9a52ada947fba9c1a2bd..218ce1b96dfc0f9700695e0d971ad243a3e800ef 100644 (file)
@@ -5062,7 +5062,15 @@ class Mesh_Triangle(Mesh_Algorithm):
         self.AssureGeomPublished( theFace )
         self.AssureGeomPublished( theAttractor )
         #  Parameter of BLSURF algo
-        self.Parameters().SetAttractorGeom(otheFace, theAttractor, theStartSize, theEndSize, theInfluenceDistance, theConstantSizeDistance)
+        self.Parameters().SetAttractorGeom(theFace, theAttractor, theStartSize, theEndSize, theInfluenceDistance, theConstantSizeDistance)
+        
+    ## Unsets an attractor on the chosen face. 
+    #  @param theFace      : face on which the attractor has to be removed                               
+    #  @ingroup l3_hypos_blsurf
+    def UnsetAttractorGeom(self, theFace):
+        self.AssureGeomPublished( theFace )
+        #  Parameter of BLSURF algo
+        self.Parameters().SetAttractorGeom(theFace)
 
     ## Sets QuadAllowed flag.
     #  Only for algoType == NETGEN(NETGEN_1D2D) || NETGEN_2D || BLSURF