Salome HOME
[EDF] (2023-T3) Creation of a non planar face from a list of edges and points
[modules/geom.git] / src / GEOM_SWIG / geomBuilder.py
index 9564a2309673cf8f2b2189c5bd476b5da4d6dff2..d62ca1288c1afb566b0e281a0a0c3bf41f8fc119 100644 (file)
@@ -4878,6 +4878,39 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             RaiseIfFailed("MakeFaceFromSurface", self.ShapesOp)
             self._autoPublish(anObj, theName, "face")
             return anObj
+        
+        ## Create a non-planar face from a list of closed edges and a list of vertices.
+        #  @param theEdges list of Edges(must be closed but not nesessarily belong to the same plane).
+        #  @param theVertices list of vertices through which the result face must pass.
+        #  @param theTolerance tolerance
+        #  @param theName Object name; when specified, this parameter is used
+        #         for result publication in the study. Otherwise, if automatic
+        #         publication is switched on, default value is used for result name.
+        #
+        #  @return New GEOM.GEOM_Object, containing the created face.
+        #
+        #  @ref tui_creation_face "Example"
+        @ManageTransactions("ShapesOp")
+        def MakeWrappedFace(self, theEdges, theVertices, theTolerance, theName=None):
+            """
+            Create a non-planar face from a list of closed edges and a list of vertices.
+
+            Parameters:
+                theEdges list of Edges(must be closed but not nesessarily belong to the same plane).
+                theVertices list of vertices through which the result face must pass.
+                theTolerance tolerance
+                theName Object name; when specified, this parameter is used
+                        for result publication in the study. Otherwise, if automatic
+                        publication is switched on, default value is used for result name.
+
+            Returns:
+                New GEOM.GEOM_Object, containing the created face.
+            """
+            # Example: see GEOM_TestAll.py
+            anObj = self.ShapesOp.MakeWrappedFace(theEdges, theVertices, theTolerance)
+            RaiseIfFailed("MakeWrappedFace", self.ShapesOp)
+            self._autoPublish(anObj, theName, "face")
+            return anObj
           
         ## Create a face from a set of edges with the given constraints.
         #  @param theConstraints List of edges and constraint faces (as a sequence of a Edge + Face couples):