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