Salome HOME
Update from BR_V5_DEV 13Feb2009
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Tools.cdl
1 --  Copyright (C) 2007-2008  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 --  File:       NMTAlgo_Tools.cdl
23 --  Created:    Fri Jan 30 16:29:14 2004
24 --  Author:     Peter KURNEV
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;