]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTAlgo/NMTAlgo_Loop3d.cdl
Salome HOME
NPAL15298: geompy.KindOfShape(aShape) first version implemented.
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Loop3d.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
21 class Loop3d from NMTAlgo
22
23         ---Purpose: Builds the shells from a set of faces.
24         --          Provides  methods   for   comparing  faces  mutual
25         --          location.
26         
27 uses
28     Vec                              from gp,
29     MapOfOrientedShape               from TopTools,
30     IndexedDataMapOfShapeListOfShape from TopTools,
31     Face                             from TopoDS,
32     Edge                             from TopoDS,
33     ListOfShape                      from TopTools,
34     Shape                            from TopoDS
35     
36 is
37
38     Create 
39         returns Loop3d from NMTAlgo ;
40     
41     AddConstFaces  (me:out;  
42             S : Shape from TopoDS)
43         ---Purpose: Add faces of <S> as unique faces in the result.
44     is static;
45
46     AddSectionFaces  (me:out;  
47             S : Shape from TopoDS)
48         ---Purpose: Add faces of <S> as double faces in the result.
49     is static;
50
51     MakeShells (me:out;  
52             AvoidFacesMap : MapOfOrientedShape from TopTools)
53         returns ListOfShape from TopTools is static;
54         ---Purpose: Make and return shells. 
55         --          <AvoidFacesMap> can contain faces that must not be
56         --          added to result shells.
57         ---C++: return const &
58     
59     
60         ---Category: class methods
61     
62     IsInside (myclass; E        : Edge    from TopoDS;
63                        F1, F2   : Face    from TopoDS;
64                        CountDot : Boolean from Standard;
65                        Dot      : in out Real    from Standard;
66                        GoodOri  : in out Boolean from Standard)
67         returns Boolean from Standard;
68         ---Purpose: check if <F2> is inside <F1> by edge <E>.
69         --          if <CountDot>, compute <Dot>: scalar production of
70         --          normalized  vectors  pointing  inside  faces,  and
71         --          check if faces are oriented well for sewing
72     
73     Normal (myclass; E : Edge from TopoDS;
74                      F : Face from TopoDS)  
75         returns Vec from gp;
76     
77     
78 fields
79
80     myNewShells : ListOfShape from TopTools; -- result
81     
82     myFaces     : ListOfShape from TopTools;
83     myEFMap     : IndexedDataMapOfShapeListOfShape from TopTools;
84     
85 end Loop3d;