Salome HOME
NPAL15298: geompy.KindOfShape(aShape) first version implemented.
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Tools.cdl
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 -- File:        NMTAlgo_Tools.cdl
21 -- Created:     Fri Jan 30 16:29:14 2004
22 -- Author:      Peter KURNEV
23 --              <pkv@irinox>
24 ---Copyright:    Matra Datavision 2004
25
26
27 class Tools from NMTAlgo 
28
29         ---Purpose: 
30
31 uses  
32     Orientation from TopAbs,
33
34     Shape from TopoDS, 
35     Edge  from TopoDS, 
36     Face  from TopoDS,
37     Shell from TopoDS, 
38          
39     ListOfShape from TopTools, 
40     IndexedMapOfShape from TopTools
41 --raises
42
43 is
44     OrientFacesOnShell (myclass; 
45             aShell: Shell from TopoDS;  
46             aShellNew: out Shell from TopoDS); 
47          
48     OrientFacesOnShell (myclass; 
49             aF  : Face from TopoDS;  
50             aSh : out Shell from TopoDS);   
51             
52     Orientation(myclass;  
53             aE:  Edge from TopoDS; 
54             aF:  Face from TopoDS) 
55         returns Orientation from TopAbs; 
56          
57     Sense  (myclass;  
58             aF1:  Face from TopoDS; 
59             aF2:  Face from TopoDS) 
60         returns Integer from Standard; 
61          
62     IsInside (myclass;  
63             aS1:  Shape from TopoDS; 
64             aS2:  Shape from TopoDS) 
65         returns Boolean from Standard;  
66          
67     MakeShells(myclass; 
68         aFC:Shape from TopoDS;
69         aLS:out ListOfShape from TopTools);  
70         
71     MakeSolids(myclass; 
72         aLS:out ListOfShape from TopTools);     
73
74     MakeSolids(myclass; 
75         aFC:Shape from TopoDS;
76         aLS:out ListOfShape from TopTools);  
77          
78     BreakWebs (myclass;  
79             aS1:  Shape from TopoDS; 
80             aS2:out Shape from TopoDS);  
81          
82     FindImageSolid (myclass;  
83             aFC  :  Shape from TopoDS;  
84             aMSo :  IndexedMapOfShape from TopTools;
85             aSo  :  out Shape from TopoDS) 
86         returns Boolean from Standard;      
87             
88 --fields
89
90 end Tools;