]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Add PreCAD wrappers
authorgdd <gdd>
Tue, 26 Jul 2011 17:48:10 +0000 (17:48 +0000)
committergdd <gdd>
Tue, 26 Jul 2011 17:48:10 +0000 (17:48 +0000)
src/SMESH_SWIG/smeshDC.py

index 91df7d4affbd0af6469dd578fe1fb2d3027d7a5d..527e60e0af9f0a50fcfe5be89a1eb52650ebed69 100644 (file)
@@ -5074,6 +5074,36 @@ class Mesh_Triangle(Mesh_Algorithm):
             #  Parameter of BLSURF algo
             self.params.SetVerbosity(level)
 
+    ## To optimize the CAD (merges edges and removes nano edges).
+    #  @ingroup l3_hypos_blsurf
+    def SetPreCADOptimCAD(self, toOptimizeCAD=False):
+        if self.Parameters():
+            #  Parameter of BLSURF algo
+            self.params.SetPreCADOptimCAD(toOptimizeCAD)
+
+    ## To compute topology from scratch
+    #  @ingroup l3_hypos_blsurf
+    def SetPreCADDiscardInput(self, toDiscardInput=False):
+        if self.Parameters():
+            #  Parameter of BLSURF algo
+            self.params.SetPreCADDiscardInput(toDiscardInput)
+
+    ## To help PreCAD treat some very dirty cases.
+    #  If the treated object is manifold.
+    #  @ingroup l3_hypos_blsurf
+    def SetPreCADManifoldGeom(self, manifold=False):
+        if self.Parameters():
+            #  Parameter of BLSURF algo
+            self.params.SetPreCADManifoldGeom(manifold)
+
+    ## To help PreCAD treat some very dirty cases.
+    #  If the object is also closed (imagine a shell).
+    #  @ingroup l3_hypos_blsurf
+    def SetPreCADClosedGeom(self, closed=False):
+        if self.Parameters():
+            #  Parameter of BLSURF algo
+            self.params.SetPreCADClosedGeom(closed)
+
     ## Sets advanced option value.
     #  @ingroup l3_hypos_blsurf
     def SetOptionValue(self, optionName, level):