Salome HOME
Mantis issue 0021432: EDF GEOM: Faces with huge tolerance can be built in GEOM.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_WireSplitter.cdl
1 -- Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2 --
3 -- Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 -- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 --
6 -- This library is free software; you can redistribute it and/or
7 -- modify it under the terms of the GNU Lesser General Public
8 -- License as published by the Free Software Foundation; either
9 -- version 2.1 of the License.
10 --
11 -- This library is distributed in the hope that it will be useful,
12 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
13 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 -- Lesser General Public License for more details.
15 --
16 -- You should have received a copy of the GNU Lesser General Public
17 -- License along with this library; if not, write to the Free Software
18 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 --
20 -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 --
22
23 -- File:        GEOMAlgo_WireSplitter.cdl
24 -- Created:     
25 -- Author:      Peter KURNEV
26 --              <pkv@irinox>
27 --
28 class WireSplitter from GEOMAlgo   
29         inherits Algo from GEOMAlgo  
30
31         ---Purpose: 
32         ---  the algorithm to split multiconnexed set of edges  
33         ---  wires on a face onto simple connexed wires 
34         ---  .
35 uses
36     Face   from TopoDS,  
37     Vertex from TopoDS, 
38     Edge   from TopoDS, 
39     
40     SequenceOfPnt2d  from TColgp, 
41     SequenceOfShape  from TopTools,   
42     ListOfShape      from TopTools, 
43     
44     ListOfListOfShape from BOPTColStd, 
45     
46     EdgeInfo                           from BOP,
47     IndexedDataMapOfVertexListEdgeInfo from BOP
48
49 --raises
50
51 is 
52     Create   
53         returns WireSplitter from GEOMAlgo; 
54     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_WireSplitter();" 
55         
56     SetFace  (me:out; 
57                 aF: Face from TopoDS); 
58          
59     SetEdges  (me:out; 
60                 aLE:ListOfShape from  TopTools);    
61
62     Edges  (me)
63          returns ListOfShape from  TopTools;  
64     ---C++:  return const &             
65      
66     Perform  (me:out) 
67         is redefined; 
68
69     IsNothingToDo (me) 
70         returns  Boolean from Standard;
71     
72     Face (me) 
73         returns Face from TopoDS; 
74     ---C++:  return const &              
75
76     Shapes (me) 
77         returns  ListOfListOfShape from BOPTColStd; 
78         ---C++:  return const &                  
79         
80 fields  
81     myFace       :  Face from TopoDS is protected; 
82     myIsDone     :  Boolean from Standard is protected;
83     myNothingToDo:  Boolean from Standard is protected;
84     myShapes     :  ListOfListOfShape from BOPTColStd is protected; 
85     mySmartMap   :  IndexedDataMapOfVertexListEdgeInfo from BOP is protected;  
86     myEdges      :  ListOfShape from  TopTools is protected; 
87     
88 end WireSplitter;
89