-- Created on: 1995-11-10 -- Created by: Yves FRICAUD -- Copyright (c) 1995-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. class Loop from BRepAlgo ---Purpose: Builds the loops from a set of edges on a face. uses Face from TopoDS, Edge from TopoDS, ListOfShape from TopTools, DataMapOfShapeListOfShape from TopTools, DataMapOfShapeShape from TopTools is Create; Init (me : in out; F : Face from TopoDS) ---Purpose: Init with the set of edges must have -- pcurves on . is static; AddEdge (me : in out; E : in out Edge from TopoDS; LV : ListOfShape from TopTools) ---Purpose: Add E with . will be copied and trim -- by vertices in . is static; AddConstEdge (me : in out; E : Edge from TopoDS) ---Purpose: Add as const edge, E can be in the result. is static; AddConstEdges (me : in out; LE : ListOfShape from TopTools) ---Purpose: Add as a set of const edges. is static; Perform(me : in out) ---Purpose: Make loops. is static; CutEdge(me; E : Edge from TopoDS; VonE : ListOfShape from TopTools; NE : in out ListOfShape from TopTools) ---Purpose: Cut the edge in several edges on the -- vertices. is static; NewWires (me) ---Purpose: Returns the list of wires performed. -- can be an empty list. ---C++: return const & returns ListOfShape from TopTools; WiresToFaces (me : in out) ---Purpose: Build faces from the wires result. is static; NewFaces (me) ---Purpose: Returns the list of faces. -- Warning: The method as to be called before. -- can be an empty list. ---C++: return const & returns ListOfShape from TopTools; NewEdges (me ; E : Edge from TopoDS) ---Purpose: Returns the list of new edges built from an edge -- it can be an empty list. ---C++: return const & returns ListOfShape from TopTools; GetVerticesForSubstitute (me; VerVerMap: out DataMapOfShapeShape from TopTools); ---Purpose: Returns the datamap of vertices with their substitutes. VerticesForSubstitute (me : in out; VerVerMap: in out DataMapOfShapeShape from TopTools); ---Purpose: fields myFace : Face from TopoDS; myConstEdges : ListOfShape from TopTools; myVerOnEdges : DataMapOfShapeListOfShape from TopTools; myNewWires : ListOfShape from TopTools; myNewFaces : ListOfShape from TopTools; myNewEdges : DataMapOfShapeListOfShape from TopTools; myVerticesForSubstitute : DataMapOfShapeShape from TopTools; end Loop;