blob: efe6183e59c776d3fef7b50ec8a2a353a5acdfc7 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// File: BRepGProp_Domain.lxx
// Created: Tue Dec 13 08:57:55 2005
// Author: Sergey KHROMOV
// <skv@dimox>
#include <TopoDS.hxx>
#include <TopoDS_Face.hxx>
//=======================================================================
//function : BRepGProp_Domain
//purpose : Empty constructor.
//=======================================================================
inline BRepGProp_Domain::BRepGProp_Domain ()
{
}
//=======================================================================
//function : BRepGProp_Domain
//purpose : Constructor. Initializes the domain with the face.
//=======================================================================
inline BRepGProp_Domain::BRepGProp_Domain (const TopoDS_Face& F) :
myExplorer(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE)
{
}
//=======================================================================
//function : Init
//purpose : Initializes the domain with the face.
//=======================================================================
inline void BRepGProp_Domain::Init(const TopoDS_Face& F)
{
myExplorer.Init(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
}
//=======================================================================
//function : More
//purpose : Returns True if there is another arc of curve in the list.
//=======================================================================
inline Standard_Boolean BRepGProp_Domain::More ()
{
return myExplorer.More();
}
//=======================================================================
//function : Init
//purpose : Initializes the exploration with the face already set.
//=======================================================================
inline void BRepGProp_Domain::Init ()
{
myExplorer.ReInit();
}
//=======================================================================
//function : Value
//purpose : Returns the current edge.
//=======================================================================
inline const TopoDS_Edge& BRepGProp_Domain::Value ()
{
return TopoDS::Edge(myExplorer.Current());
}
|