blob: bc8deda065947f184c0cfcc9fff67f7492fd953b (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
// File: PBRep_CurveOnSurface.cxx
// Created: Mon Jul 26 10:28:56 1993
// Author: Remi LEQUETTE
// <rle@nonox>
#include <PBRep_CurveOnSurface.ixx>
//=======================================================================
//function : PBRep_CurveOnSurface
//purpose :
//=======================================================================
PBRep_CurveOnSurface::PBRep_CurveOnSurface(const Handle(PGeom2d_Curve)& PC,
const Standard_Real CF,
const Standard_Real CL,
const Handle(PGeom_Surface)& S,
const PTopLoc_Location& L) :
PBRep_GCurve(L, CF, CL),
myPCurve(PC),
mySurface(S)
{
}
//=======================================================================
//function : Surface
//purpose :
//=======================================================================
Handle(PGeom_Surface) PBRep_CurveOnSurface::Surface()const
{
return mySurface;
}
//=======================================================================
//function : PCurve
//purpose :
//=======================================================================
Handle(PGeom2d_Curve) PBRep_CurveOnSurface::PCurve()const
{
return myPCurve;
}
//=======================================================================
//function : IsCurveOnSurface
//purpose :
//=======================================================================
Standard_Boolean PBRep_CurveOnSurface::IsCurveOnSurface()const
{
return Standard_True;
}
//=======================================================================
//function : SetUVPoints
//purpose :
//=======================================================================
void PBRep_CurveOnSurface::SetUVPoints(const gp_Pnt2d& Pnt1,
const gp_Pnt2d& Pnt2)
{
myUV1 = Pnt1;
myUV2 = Pnt2;
}
//=======================================================================
//function : FirstUV
//purpose :
//=======================================================================
gp_Pnt2d PBRep_CurveOnSurface::FirstUV() const
{
return myUV1;
}
//=======================================================================
//function : LastUV
//purpose :
//=======================================================================
gp_Pnt2d PBRep_CurveOnSurface::LastUV() const
{
return myUV2;
}
|