summaryrefslogtreecommitdiff
path: root/src/PGeom/PGeom_BezierSurface.cxx
blob: f7a3896410a3ac404fd6533126d8882b0c1f6dc4 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
// File:	PGeom_BezierSurface.cxx
// Created:	Wed Mar  3 16:26:50 1993
// Author:	Philippe DAUTRY
//		<fid@phylox>
// Copyright:	Matra Datavision 1993


#include <PGeom_BezierSurface.ixx>

//=======================================================================
//function : PGeom_BezierSurface
//purpose  : 
//=======================================================================

PGeom_BezierSurface::PGeom_BezierSurface()
{}


//=======================================================================
//function : PGeom_BezierSurface
//purpose  : 
//=======================================================================

PGeom_BezierSurface::PGeom_BezierSurface
  (const Standard_Boolean aURational,
   const Standard_Boolean aVRational,
   const Handle(PColgp_HArray2OfPnt)& aPoles,
   const Handle(PColStd_HArray2OfReal)& aWeights) :
  uRational(aURational),
  vRational(aVRational),
  poles(aPoles),
  weights(aWeights)
{}


//=======================================================================
//function : Poles
//purpose  : 
//=======================================================================

void  PGeom_BezierSurface::Poles(const Handle(PColgp_HArray2OfPnt)& aPoles)
{ poles = aPoles; }


//=======================================================================
//function : Poles
//purpose  : 
//=======================================================================

Handle(PColgp_HArray2OfPnt)  PGeom_BezierSurface::Poles() const 
{ return poles; }


//=======================================================================
//function : Weights
//purpose  : 
//=======================================================================

void  PGeom_BezierSurface::Weights(const Handle(PColStd_HArray2OfReal)& aWeights)
{ weights = aWeights; }


//=======================================================================
//function : Weights
//purpose  : 
//=======================================================================

Handle(PColStd_HArray2OfReal)  PGeom_BezierSurface::Weights() const 
{ return weights; }


//=======================================================================
//function : URational
//purpose  : 
//=======================================================================

void  PGeom_BezierSurface::URational(const Standard_Boolean aURational)
{ uRational = aURational; }


//=======================================================================
//function : URational
//purpose  : 
//=======================================================================

Standard_Boolean  PGeom_BezierSurface::URational() const 
{ return uRational; }


//=======================================================================
//function : VRational
//purpose  : 
//=======================================================================

void  PGeom_BezierSurface::VRational(const Standard_Boolean aVRational)
{ vRational = aVRational; }


//=======================================================================
//function : VRational
//purpose  : 
//=======================================================================

Standard_Boolean  PGeom_BezierSurface::VRational() const 
{ return vRational; }