7fd59977 |
1 | // File: HLRBRep_FaceIterator.cxx |
2 | // Created: Thu Apr 17 16:00:19 1997 |
3 | // Author: Christophe MARION |
4 | // <cma@partox.paris1.matra-dtv.fr> |
5 | #ifndef No_Exception |
6 | #define No_Exception |
7 | #endif |
8 | #include <HLRBRep_FaceIterator.ixx> |
9 | |
10 | //======================================================================= |
11 | //function : FaceIterator |
12 | //purpose : |
13 | //======================================================================= |
14 | |
15 | HLRBRep_FaceIterator::HLRBRep_FaceIterator() |
16 | {} |
17 | |
18 | //======================================================================= |
19 | //function : InitEdge |
20 | //purpose : |
21 | //======================================================================= |
22 | |
23 | void HLRBRep_FaceIterator::InitEdge(HLRBRep_FaceData& fd) |
24 | { |
25 | iWire = 0; |
26 | myWires = fd.Wires(); |
27 | nbWires = myWires->NbWires(); |
28 | |
29 | iEdge = 0; |
30 | nbEdges = 0; |
31 | NextEdge(); |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : NextEdge |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | void HLRBRep_FaceIterator::NextEdge() |
40 | { |
41 | iEdge++; |
42 | if (iEdge > nbEdges) { |
43 | iWire++; |
44 | if (iWire <= nbWires) { |
45 | iEdge = 1; |
46 | myEdges = myWires->Wire(iWire); |
47 | nbEdges = myEdges->NbEdges(); |
48 | } |
49 | } |
50 | } |
51 | |