summaryrefslogtreecommitdiff
path: root/src/PGeom/PGeom_BSplineSurface.cxx
blob: a9148290d086a1a62c5b8a9c19cd742d7d52f354 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
// File:	PGeom_BSplineSurface.cxx
// Created:	Wed Mar  3 15:19:11 1993
// Author:	Philippe DAUTRY
//		<fid@phylox>
// Copyright:	Matra Datavision 1993


#include <PGeom_BSplineSurface.ixx>

//=======================================================================
//function : PGeom_BSplineSurface
//purpose  : 
//=======================================================================

PGeom_BSplineSurface::PGeom_BSplineSurface()
{}


//=======================================================================
//function : PGeom_BSplineSurface
//purpose  : 
//=======================================================================

PGeom_BSplineSurface::PGeom_BSplineSurface
  (const Standard_Boolean aURational,
   const Standard_Boolean aVRational,
   const Standard_Boolean aUPeriodic,
   const Standard_Boolean aVPeriodic,
   const Standard_Integer aUSpineDegree,
   const Standard_Integer aVSpineDegree,
   const Handle(PColgp_HArray2OfPnt)& aPoles,
   const Handle(PColStd_HArray2OfReal)& aWeights,
   const Handle(PColStd_HArray1OfReal)& aUKnots,
   const Handle(PColStd_HArray1OfReal)& aVKnots,
   const Handle(PColStd_HArray1OfInteger)& aUMultiplicities,
   const Handle(PColStd_HArray1OfInteger)& aVMultiplicities) :
   uRational(aURational),
   vRational(aVRational),
   uPeriodic(aUPeriodic),
   vPeriodic(aVPeriodic),
   uSpineDegree(aUSpineDegree),
   vSpineDegree(aVSpineDegree),
   poles(aPoles),
   weights(aWeights),
   uKnots(aUKnots),
   vKnots(aVKnots),
   uMultiplicities(aUMultiplicities),
   vMultiplicities(aVMultiplicities)
{}


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

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


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

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


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

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


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

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


//=======================================================================
//function : UPeriodic
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::UPeriodic(const Standard_Boolean aUPeriodic)
{ uPeriodic = aUPeriodic; }


//=======================================================================
//function : UPeriodic
//purpose  : 
//=======================================================================

Standard_Boolean  PGeom_BSplineSurface::UPeriodic() const 
{ return uPeriodic; }


//=======================================================================
//function : VPeriodic
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::VPeriodic(const Standard_Boolean aVPeriodic)
{ vPeriodic = aVPeriodic; }


//=======================================================================
//function : VPeriodic
//purpose  : 
//=======================================================================

Standard_Boolean  PGeom_BSplineSurface::VPeriodic() const 
{ return vPeriodic; }


//=======================================================================
//function : USpineDegree
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::USpineDegree(const Standard_Integer aUSpineDegree)
{ uSpineDegree = aUSpineDegree; }


//=======================================================================
//function : USpineDegree
//purpose  : 
//=======================================================================

Standard_Integer  PGeom_BSplineSurface::USpineDegree() const 
{ return uSpineDegree; }


//=======================================================================
//function : VSpineDegree
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::VSpineDegree(const Standard_Integer aVSpineDegree)
{ vSpineDegree = aVSpineDegree; }


//=======================================================================
//function : VSpineDegree
//purpose  : 
//=======================================================================

Standard_Integer  PGeom_BSplineSurface::VSpineDegree() const 
{ return vSpineDegree; }


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

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


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

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


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

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


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

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


//=======================================================================
//function : UKnots
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::
  UKnots(const Handle(PColStd_HArray1OfReal)& aUKnots)
{ uKnots = aUKnots; }


//=======================================================================
//function : UKnots
//purpose  : 
//=======================================================================

Handle(PColStd_HArray1OfReal)  PGeom_BSplineSurface::UKnots() const 
{ return uKnots; }


//=======================================================================
//function : VKnots
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::
  VKnots(const Handle(PColStd_HArray1OfReal)& aVKnots)
{ vKnots = aVKnots; }


//=======================================================================
//function : VKnots
//purpose  : 
//=======================================================================

Handle(PColStd_HArray1OfReal)  PGeom_BSplineSurface::VKnots() const 
{ return vKnots; }


//=======================================================================
//function : UMultiplicities
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::UMultiplicities
  (const Handle(PColStd_HArray1OfInteger)& aUMultiplicities)
{ uMultiplicities = aUMultiplicities; }


//=======================================================================
//function : UMultiplicities
//purpose  : 
//=======================================================================

Handle(PColStd_HArray1OfInteger)  PGeom_BSplineSurface::
       UMultiplicities() const 
{ return uMultiplicities; }


//=======================================================================
//function : VMultiplicities
//purpose  : 
//=======================================================================

void  PGeom_BSplineSurface::
  VMultiplicities(const Handle(PColStd_HArray1OfInteger)& aVMultiplicities)
{ vMultiplicities = aVMultiplicities; }


//=======================================================================
//function : VMultiplicities
//purpose  : 
//=======================================================================

Handle(PColStd_HArray1OfInteger)  PGeom_BSplineSurface::
       VMultiplicities() const 
{ return vMultiplicities; }