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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// File: Sweep_NumShape.cxx
// Created: Wed Feb 3 17:55:49 1993
// Author: Laurent BOURESCHE
// <lbo@phylox>
#include <Sweep_NumShape.ixx>
//=======================================================================
//function : Sweep_NumShape
//purpose :
//=======================================================================
Sweep_NumShape::Sweep_NumShape():
myType(TopAbs_SHAPE),
myIndex(0),
myClosed(Standard_False),
myBegInf(Standard_False),
myEndInf(Standard_False)
{
}
//=======================================================================
//function : Sweep_NumShape
//purpose :
//=======================================================================
Sweep_NumShape::Sweep_NumShape(const Standard_Integer Index,
const TopAbs_ShapeEnum Type,
const Standard_Boolean Closed,
const Standard_Boolean BegInf,
const Standard_Boolean EndInf):
myType(Type),
myIndex(Index),
myClosed(Closed),
myBegInf(BegInf),
myEndInf(EndInf)
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void Sweep_NumShape::Init(const Standard_Integer Index,
const TopAbs_ShapeEnum Type,
const Standard_Boolean Closed,
const Standard_Boolean BegInf,
const Standard_Boolean EndInf)
{
myIndex = Index;
myType = Type;
myClosed = Closed;
myBegInf = BegInf;
myEndInf = EndInf;
}
//=======================================================================
//function : Orientation
//purpose :
//=======================================================================
TopAbs_Orientation Sweep_NumShape::Orientation () const
{
if (myType==TopAbs_EDGE){
return TopAbs_FORWARD;
}
else{
if(myIndex == 2){
return TopAbs_FORWARD;
}
else{
return TopAbs_REVERSED;
}
}
}
|