blob: 4e5585e43054fa20545398dc876709cd8f3d3120 (
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
|
#include <Adaptor3d_HVertex.ixx>
#include <Precision.hxx>
#include <ElCLib.hxx>
#include <Adaptor2d_HCurve2d.hxx>
Adaptor3d_HVertex::Adaptor3d_HVertex ()
{}
Adaptor3d_HVertex::Adaptor3d_HVertex (const gp_Pnt2d& P,
const TopAbs_Orientation Or,
const Standard_Real Resolution):
myPnt(P),myTol(Resolution),myOri(Or)
{}
gp_Pnt2d Adaptor3d_HVertex::Value ()
{
return myPnt;
}
Standard_Real Adaptor3d_HVertex::Parameter (const Handle(Adaptor2d_HCurve2d)& C)
{
return ElCLib::Parameter(C->Line(),myPnt);
}
Standard_Real Adaptor3d_HVertex::Resolution (const Handle(Adaptor2d_HCurve2d)&)
{
return myTol;
}
TopAbs_Orientation Adaptor3d_HVertex::Orientation ()
{
return myOri;
}
Standard_Boolean Adaptor3d_HVertex::IsSame(const Handle(Adaptor3d_HVertex)& Other)
{
return (myPnt.Distance(Other->Value())<= Precision::Confusion());
}
|