Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BOPTools / BOPTools_DEInfo.cxx
1 // File:        BOPTools_DEInfo.cxx
2 // Created:     Wed Sep 12 13:02:17 2001
3 // Author:      Peter KURNEV
4 //              <pkv@irinox>
5
6
7 #include <BOPTools_DEInfo.ixx>
8 #include <TColStd_ListIteratorOfListOfInteger.hxx>
9
10 //=======================================================================
11 // function: BOPTools_DEInfo::BOPTools_DEInfo
12 // purpose: 
13 //=======================================================================
14    BOPTools_DEInfo::BOPTools_DEInfo()
15 {}
16
17 //=======================================================================
18 // function: SetVertex
19 // purpose: 
20 //=======================================================================
21   void BOPTools_DEInfo::SetVertex(const Standard_Integer nV)
22 {
23   myVertex=nV;
24 }
25
26 //=======================================================================
27 // function: Vertex
28 // purpose: 
29 //=======================================================================
30   Standard_Integer BOPTools_DEInfo::Vertex()const  
31 {
32   return myVertex;
33 }
34 //=======================================================================
35 // function: SetFaces
36 // purpose: 
37 //=======================================================================
38   void BOPTools_DEInfo::SetFaces(const TColStd_ListOfInteger& aLI)
39 {
40   myFaces.Clear();
41
42   TColStd_ListIteratorOfListOfInteger anIt(aLI);
43   for (; anIt.More();  anIt.Next()) {
44     Standard_Integer nF=anIt.Value();
45     myFaces.Append(nF);
46   }
47 }
48 //=======================================================================
49 // function: Faces
50 // purpose: 
51 //=======================================================================
52   const TColStd_ListOfInteger& BOPTools_DEInfo::Faces()const 
53 {
54   return myFaces;
55 }
56 //=======================================================================
57 // function: ChangeFaces
58 // purpose: 
59 //=======================================================================
60   TColStd_ListOfInteger& BOPTools_DEInfo::ChangeFaces() 
61 {
62   return myFaces;
63 }
64
65