blob: 63b47dfa317dc54b17e8efd6df8088b983dfc7ca (
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
|
// File: PGeom_BezierCurve.cxx
// Created: Wed Mar 3 15:44:11 1993
// Author: Philippe DAUTRY
// <fid@phylox>
// Copyright: Matra Datavision 1993
#include <PGeom_BezierCurve.ixx>
//=======================================================================
//function : PGeom_BezierCurve
//purpose :
//=======================================================================
PGeom_BezierCurve::PGeom_BezierCurve()
{}
//=======================================================================
//function : PGeom_BezierCurve
//purpose :
//=======================================================================
PGeom_BezierCurve::PGeom_BezierCurve
(const Handle(PColgp_HArray1OfPnt)& aPoles,
const Handle(PColStd_HArray1OfReal)& aWeights,
const Standard_Boolean aRational) :
rational(aRational),
poles(aPoles),
weights(aWeights)
{}
//=======================================================================
//function : Rational
//purpose :
//=======================================================================
void PGeom_BezierCurve::Rational(const Standard_Boolean aRational)
{ rational = aRational; }
//=======================================================================
//function : Rational
//purpose :
//=======================================================================
Standard_Boolean PGeom_BezierCurve::Rational() const
{ return rational; }
//=======================================================================
//function : Poles
//purpose :
//=======================================================================
void PGeom_BezierCurve::Poles
(const Handle(PColgp_HArray1OfPnt)& aPoles)
{ poles = aPoles; }
//=======================================================================
//function : Poles
//purpose :
//=======================================================================
Handle(PColgp_HArray1OfPnt) PGeom_BezierCurve::Poles() const
{ return poles; }
//=======================================================================
//function : Weights
//purpose :
//=======================================================================
void PGeom_BezierCurve::Weights
(const Handle(PColStd_HArray1OfReal)& aWeights)
{ weights = aWeights; }
//=======================================================================
//function : Weights
//purpose :
//=======================================================================
Handle(PColStd_HArray1OfReal)
PGeom_BezierCurve::Weights() const
{ return weights; }
|