Salome HOME
Patch for bug IPAL9210(3.0.0 "GEOM_usinggeom.py" script execution failed.).
[modules/geom.git] / src / PARTITION / Partition_Loop2d.cdl
1 --  GEOM PARTITION : partition algorithm
2 --
3 --  Copyright (C) 2003  CEA/DEN, EDF R&D
4 --
5 --
6 --
7 --  File   : Partition_Loop2d.cdl
8 --  Author : Benedicte MARTIN
9 --  Module : GEOM
10
11 class Loop2d from Partition
12
13         ---Purpose: Builds the loops from a set of edges on a face.
14         --          It works in  supposition  that  all constant edges
15         --          are split edges of  an initialization face and all
16         --          section edges are new on the face
17
18 uses
19
20     Orientation               from TopAbs,
21     Boolean                   from Standard,
22     Face                      from TopoDS,
23     Image                     from BRepAlgo,
24     Face                      from TopoDS,
25     Edge                      from TopoDS,
26     ListOfShape               from TopTools,
27     DataMapOfShapeListOfShape from TopTools,
28     MapOfShape                from TopTools
29 is
30
31     Create;
32     
33     Init (me : in out; F : Face from TopoDS)
34         ---Purpose: Init with <F> the set of edges must have
35         --          pcurves on <F>. 
36     is static;
37     
38     AddConstEdge  (me : in out; E : Edge from TopoDS)
39         ---Purpose: Add <E> as unique edge in the result.
40     is static;
41
42     AddSectionEdge  (me : in out; E : Edge from TopoDS)
43         ---Purpose: Add <E> as double edge in the result.
44     is static;
45
46     Perform(me : in out)
47         ---Purpose: Make loops.
48     is static;
49     
50     NewWires (me)       
51         ---Purpose: Returns the list of wires performed. 
52         --          can be an empty list.
53         ---C++: return const &
54     returns ListOfShape from TopTools;
55         
56     WiresToFaces (me : in out; EdgeImage : Image      from BRepAlgo)
57         ---Purpose:  Build faces from the wires result.
58         --           <EdgeImage> serves to  find  original edge by new
59         --           one.
60     is static;
61     
62     NewFaces (me)
63         ---Purpose: Returns the list of faces.
64         ---Warning: The method <WiresToFaces> as to be called before.
65         --          can be an empty list.
66         ---C++: return const &
67     returns ListOfShape from TopTools;
68
69     
70 fields
71
72     myFace       : Face        from TopoDS;
73     myFaceOri    : Orientation from TopAbs;
74     myConstEdges : ListOfShape from TopTools;
75     myNewWires   : ListOfShape from TopTools;
76     myNewFaces   : ListOfShape from TopTools;
77
78      -- internal wires do not contain constant edges
79     myInternalWL : ListOfShape from TopTools;
80     
81     mySectionEdges : MapOfShape from TopTools;
82     
83 end Loop2d;