Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeNurbCurve2d.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGeNurbCurve2d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeNurbCurve2d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeNurbCurve2d obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public OdGeNurbCurve2d() : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_0(), true) {
44 }
45
46 public OdGeNurbCurve2d(OdGeNurbCurve2d source) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_1(OdGeNurbCurve2d.getCPtr(source)), true) {
48 }
49
50 public OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints, bool isPeriodic) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_2(degree, OdGeKnotVector.getCPtr(knots), OdGePoint2dArray.getCPtr(controlPoints).Handle, isPeriodic), true) {
52 }
53
54 public OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_3(degree, OdGeKnotVector.getCPtr(knots), OdGePoint2dArray.getCPtr(controlPoints).Handle), true) {
56 }
57
58 public OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints, OdGeDoubleArray weights, bool isPeriodic) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_4(degree, OdGeKnotVector.getCPtr(knots), OdGePoint2dArray.getCPtr(controlPoints).Handle, OdGeDoubleArray.getCPtr(weights), isPeriodic), true) {
60 }
61
62 public OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints, OdGeDoubleArray weights) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_5(degree, OdGeKnotVector.getCPtr(knots), OdGePoint2dArray.getCPtr(controlPoints).Handle, OdGeDoubleArray.getCPtr(weights)), true) {
64 }
65
66 public OdGeNurbCurve2d(int degree, OdGePolyline2d fitPolyline, bool isPeriodic) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_6(degree, OdGePolyline2d.getCPtr(fitPolyline), isPeriodic), true) {
68 }
69
70 public OdGeNurbCurve2d(int degree, OdGePolyline2d fitPolyline) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_7(degree, OdGePolyline2d.getCPtr(fitPolyline)), true) {
72 }
73
74 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined, OdGeTol fitTolerance) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_8(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, startTangentDefined, endTangentDefined, OdGeTol.getCPtr(fitTolerance)), true) {
76 }
77
78 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_9(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, startTangentDefined, endTangentDefined), true) {
80 }
81
82 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_10(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, startTangentDefined), true) {
84 }
85
86 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_11(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle), true) {
88 }
89
90 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeTol fitTolerance) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_12(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeTol.getCPtr(fitTolerance)), true) {
92 }
93
94 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_13(OdGePoint2dArray.getCPtr(fitPoints).Handle), true) {
96 }
97
98 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2dArray fitTangents, OdGeTol fitTolerance, bool isPeriodic) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_14(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2dArray.getCPtr(fitTangents), OdGeTol.getCPtr(fitTolerance), isPeriodic), true) {
100 }
101
102 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2dArray fitTangents, OdGeTol fitTolerance) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_15(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2dArray.getCPtr(fitTangents), OdGeTol.getCPtr(fitTolerance)), true) {
104 }
105
106 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2dArray fitTangents) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_16(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2dArray.getCPtr(fitTangents)), true) {
108 }
109
110 public OdGeNurbCurve2d(OdGeEllipArc2d ellipse) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_17(OdGeEllipArc2d.getCPtr(ellipse)), true) {
112 }
113
114 public OdGeNurbCurve2d(OdGeLineSeg2d linSeg) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_18(OdGeLineSeg2d.getCPtr(linSeg)), true) {
116 }
117
118 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined, OdGe.OdGeKnotParameterization knotParam, OdGeTol fitTol) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_19(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, startTangentDefined, endTangentDefined, (int)knotParam, OdGeTol.getCPtr(fitTol)), true) {
120 }
121
122 public OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined, OdGe.OdGeKnotParameterization knotParam) : this(GlobalsPINVOKE.new_OdGeNurbCurve2d__SWIG_20(OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, startTangentDefined, endTangentDefined, (int)knotParam), true) {
124 }
125
126 public int numFitPoints() {
129 return ret;
130 }
131
133 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_getFitKnotParameterization(swigCPtr, ref knotParam);
135 return ret;
136 }
137
138 public bool getFitPointAt(int fitPointIndex, OdGePoint2d point) {
139 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_getFitPointAt(swigCPtr, fitPointIndex, OdGePoint2d.getCPtr(point));
141 return ret;
142 }
143
144 public bool getFitTolerance(OdGeTol fitTolerance) {
145 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_getFitTolerance(swigCPtr, OdGeTol.getCPtr(fitTolerance));
147 return ret;
148 }
149
150 public bool getFitTangents(OdGeVector2d startTangent, OdGeVector2d endTangent) {
151 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_getFitTangents(swigCPtr, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle);
153 return ret;
154 }
155
156 public bool getFitData(OdGePoint2dArray fitPoints, OdGeTol fitTolerance, out bool tangentsExist, OdGeVector2d startTangent, OdGeVector2d endTangent) {
157 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_getFitData__SWIG_0(swigCPtr, OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeTol.getCPtr(fitTolerance), out tangentsExist, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle);
159 return ret;
160 }
161
162 public bool getFitData(OdGePoint2dArray fitPoints, OdGeTol fitTolerance, out bool tangentsExist, OdGeVector2d startTangent, OdGeVector2d endTangent, ref OdGe.OdGeKnotParameterization knotParam) {
163 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_getFitData__SWIG_1(swigCPtr, OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeTol.getCPtr(fitTolerance), out tangentsExist, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, ref knotParam);
165 return ret;
166 }
167
168 public void getDefinitionData(out int degree, out bool rational, out bool periodic, OdGeKnotVector knots, OdGePoint2dArray controlPoints, OdGeDoubleArray weights) {
169 GlobalsPINVOKE.OdGeNurbCurve2d_getDefinitionData(swigCPtr, out degree, out rational, out periodic, OdGeKnotVector.getCPtr(knots), OdGePoint2dArray.getCPtr(controlPoints).Handle, OdGeDoubleArray.getCPtr(weights));
171 }
172
173 public int numWeights() {
174 int ret = GlobalsPINVOKE.OdGeNurbCurve2d_numWeights(swigCPtr);
176 return ret;
177 }
178
179 public double weightAt(int weightIndex) {
180 double ret = GlobalsPINVOKE.OdGeNurbCurve2d_weightAt(swigCPtr, weightIndex);
182 return ret;
183 }
184
185 public OdGeNurbCurve2d setWeightAt(int weightIndex, double weight) {
186 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setWeightAt(swigCPtr, weightIndex, weight), false);
188 return ret;
189 }
190
191 public bool evalMode() {
192 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_evalMode(swigCPtr);
194 return ret;
195 }
196
200 return ret;
201 }
202
206 return ret;
207 }
208
212 return ret;
213 }
214
218 return ret;
219 }
220
221 public bool setFitPointAt(int fitPointIndex, OdGePoint2d point) {
222 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_setFitPointAt(swigCPtr, fitPointIndex, OdGePoint2d.getCPtr(point));
224 return ret;
225 }
226
227 public bool addFitPointAt(int fitPointIndex, OdGePoint2d point) {
228 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_addFitPointAt(swigCPtr, fitPointIndex, OdGePoint2d.getCPtr(point));
230 return ret;
231 }
232
233 public bool deleteFitPointAt(int fitPointIndex) {
234 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_deleteFitPointAt(swigCPtr, fitPointIndex);
236 return ret;
237 }
238
239 public bool addControlPointAt(double newKnot, OdGePoint2d point, double weight) {
240 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_addControlPointAt__SWIG_0(swigCPtr, newKnot, OdGePoint2d.getCPtr(point), weight);
242 return ret;
243 }
244
245 public bool addControlPointAt(double newKnot, OdGePoint2d point) {
248 return ret;
249 }
250
251 public bool deleteControlPointAt(int index) {
252 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_deleteControlPointAt(swigCPtr, index);
254 return ret;
255 }
256
258 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_setFitKnotParameterization(swigCPtr, (int)knotParam);
260 return ret;
261 }
262
263 public bool setFitTolerance(OdGeTol fitTol) {
266 return ret;
267 }
268
269 public bool setFitTolerance() {
272 return ret;
273 }
274
275 public bool setFitTangents(OdGeVector2d startTangent, OdGeVector2d endTangent) {
276 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_setFitTangents(swigCPtr, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle);
278 return ret;
279 }
280
281 public OdGeNurbCurve2d setFitData(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGeTol fitTol) {
282 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setFitData__SWIG_0(swigCPtr, OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, OdGeTol.getCPtr(fitTol)), false);
284 return ret;
285 }
286
287 public OdGeNurbCurve2d setFitData(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent) {
288 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setFitData__SWIG_1(swigCPtr, OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle), false);
290 return ret;
291 }
292
293 public OdGeNurbCurve2d setFitData(OdGeKnotVector fitKnots, OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGeTol fitTol, bool isPeriodic) {
294 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setFitData__SWIG_2(swigCPtr, OdGeKnotVector.getCPtr(fitKnots), OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, OdGeTol.getCPtr(fitTol), isPeriodic), false);
296 return ret;
297 }
298
299 public OdGeNurbCurve2d setFitData(OdGeKnotVector fitKnots, OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGeTol fitTol) {
300 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setFitData__SWIG_3(swigCPtr, OdGeKnotVector.getCPtr(fitKnots), OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, OdGeTol.getCPtr(fitTol)), false);
302 return ret;
303 }
304
305 public OdGeNurbCurve2d setFitData(OdGeKnotVector fitKnots, OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent) {
306 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setFitData__SWIG_4(swigCPtr, OdGeKnotVector.getCPtr(fitKnots), OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle), false);
308 return ret;
309 }
310
314 return ret;
315 }
316
320 return ret;
321 }
322
323 public OdGeNurbCurve2d setFitData(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGe.OdGeKnotParameterization knotParam, OdGeTol fitTol) {
324 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setFitData__SWIG_7(swigCPtr, OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, (int)knotParam, OdGeTol.getCPtr(fitTol)), false);
326 return ret;
327 }
328
330 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_setFitData__SWIG_8(swigCPtr, OdGePoint2dArray.getCPtr(fitPoints).Handle, OdGeVector2d.getCPtr(startTangent).Handle, OdGeVector2d.getCPtr(endTangent).Handle, (int)knotParam), false);
332 return ret;
333 }
334
335 public bool purgeFitData() {
336 bool ret = GlobalsPINVOKE.OdGeNurbCurve2d_purgeFitData(swigCPtr);
338 return ret;
339 }
340
341 public OdGeNurbCurve2d addKnot(double newKnot) {
342 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_addKnot(swigCPtr, newKnot), false);
344 return ret;
345 }
346
347 public OdGeNurbCurve2d insertKnot(double newKnot) {
350 return ret;
351 }
352
356 return ret;
357 }
358
362 return ret;
363 }
364
368 return ret;
369 }
370
371 public OdGeNurbCurve2d hardTrimByParams(double newStartParam, double newEndParam) {
372 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_hardTrimByParams(swigCPtr, newStartParam, newEndParam), false);
374 return ret;
375 }
376
377 public OdGeNurbCurve2d makeRational(double weight) {
380 return ret;
381 }
382
386 return ret;
387 }
388
392 return ret;
393 }
394
398 return ret;
399 }
400
404 return ret;
405 }
406
410 return ret;
411 }
412
413 public OdGeNurbCurve2d elevateDegree(int plusDegree) {
414 OdGeNurbCurve2d ret = new OdGeNurbCurve2d(GlobalsPINVOKE.OdGeNurbCurve2d_elevateDegree(swigCPtr, plusDegree), false);
416 return ret;
417 }
418
422 return ret;
423 }
424
425 public bool intersectWith(OdGeLine2d line2d, OdGePoint2dArray pnts2d, OdGeTol tol, OdGeDoubleArray params_) {
428 return ret;
429 }
430
431 public bool intersectWith(OdGeLine2d line2d, OdGePoint2dArray pnts2d, OdGeTol tol) {
434 return ret;
435 }
436
437 public bool intersectWith(OdGeLine2d line2d, OdGePoint2dArray pnts2d) {
440 return ret;
441 }
442
446 return ret;
447 }
448
452 return ret;
453 }
454
455 public static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeInterval domain, OdGeTol tol, bool sameParametrization) {
456 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeNurbCurve2d_convertFrom__SWIG_0(OdGeCurve2d.getCPtr(source), OdGeInterval.getCPtr(domain), OdGeTol.getCPtr(tol), sameParametrization);
457 OdGeNurbCurve2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeNurbCurve2d(cPtr, false);
459 return ret;
460 }
461
462 public static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeInterval domain, OdGeTol tol) {
464 OdGeNurbCurve2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeNurbCurve2d(cPtr, false);
466 return ret;
467 }
468
469 public static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeInterval domain) {
470 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeNurbCurve2d_convertFrom__SWIG_2(OdGeCurve2d.getCPtr(source), OdGeInterval.getCPtr(domain));
471 OdGeNurbCurve2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeNurbCurve2d(cPtr, false);
473 return ret;
474 }
475
476 public static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeTol tol, bool sameParametrization) {
477 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeNurbCurve2d_convertFrom__SWIG_3(OdGeCurve2d.getCPtr(source), OdGeTol.getCPtr(tol), sameParametrization);
478 OdGeNurbCurve2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeNurbCurve2d(cPtr, false);
480 return ret;
481 }
482
483 public static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeTol tol) {
484 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeNurbCurve2d_convertFrom__SWIG_4(OdGeCurve2d.getCPtr(source), OdGeTol.getCPtr(tol));
485 OdGeNurbCurve2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeNurbCurve2d(cPtr, false);
487 return ret;
488 }
489
491 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeNurbCurve2d_convertFrom__SWIG_5(OdGeCurve2d.getCPtr(source));
492 OdGeNurbCurve2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeNurbCurve2d(cPtr, false);
494 return ret;
495 }
496
501 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
502
507 public int vb_order() { return this.order(); }
508
509}
510
511}
static global::System.Exception Retrieve()
static bool OdGeNurbCurve2d_getParamsOfC1Discontinuity__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeNurbCurve2d_makeRational__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeNurbCurve2d_getDefinitionData(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out bool jarg3, out bool jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, IntPtr jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static global::System.IntPtr OdGeNurbCurve2d_convertFrom__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeNurbCurve2d_deleteControlPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdGeNurbCurve2d_addControlPointAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeNurbCurve2d_setFitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeNurbCurve2d_getFitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeNurbCurve2d_setEvalMode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeNurbCurve2d_intersectWith__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static double OdGeNurbCurve2d_weightAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, IntPtr jarg3, IntPtr jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static void delete_OdGeNurbCurve2d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeNurbCurve2d_convertFrom__SWIG_4(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr OdGeNurbCurve2d_makePeriodic(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeNurbCurve2d_addKnot(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeNurbCurve2d_convertFrom__SWIG_5(HandleRef jarg1)
static bool OdGeNurbCurve2d_deleteFitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_8(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, IntPtr jarg3, IntPtr jarg4, int jarg5)
static global::System.IntPtr OdGeNurbCurve2d_makeRational__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeNurbCurve2d_getFitTangents(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, IntPtr jarg3)
static bool OdGeNurbCurve2d_setFitTolerance__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeNurbCurve2d_intersectWith__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr OdGeNurbCurve2d_convertFrom__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static bool OdGeNurbCurve2d_getParamsOfC1Discontinuity__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeNurbCurve2d_setFitKnotParameterization(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdGeNurbCurve2d_addFitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeNurbCurve2d_getFitData__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out bool jarg4, IntPtr jarg5, IntPtr jarg6)
static global::System.IntPtr OdGeNurbCurve2d_makeNonPeriodic(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeNurbCurve2d_setFitTolerance__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeNurbCurve2d_intersectWith__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, IntPtr jarg5)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3, IntPtr jarg4, IntPtr jarg5)
static bool OdGeNurbCurve2d_getFitKnotParameterization(global::System.Runtime.InteropServices.HandleRef jarg1, ref OdGe.OdGeKnotParameterization jarg2)
static bool OdGeNurbCurve2d_getParamsOfG1Discontinuity__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_6(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_7(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, IntPtr jarg3, IntPtr jarg4, int jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static global::System.IntPtr OdGeNurbCurve2d_insertKnot(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3, IntPtr jarg4, IntPtr jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, bool jarg7)
static global::System.IntPtr OdGeNurbCurve2d_elevateDegree(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeNurbCurve2d_joinWith(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeNurbCurve2d_addControlPointAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static bool OdGeNurbCurve2d_getParamsOfG1Discontinuity__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeNurbCurve2d_convertFrom__SWIG_3(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static global::System.IntPtr OdGeNurbCurve2d_hardTrimByParams(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, IntPtr jarg3, IntPtr jarg4)
static bool OdGeNurbCurve2d_getFitTolerance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeNurbCurve2d_convertFrom__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeNurbCurve2d_getFitData__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out bool jarg4, IntPtr jarg5, IntPtr jarg6, ref OdGe.OdGeKnotParameterization jarg7)
static global::System.IntPtr OdGeNurbCurve2d_setWeightAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static int OdGeNurbCurve2d_numFitPoints(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeNurbCurve2d_setFitTangents(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeNurbCurve2d_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, bool jarg6)
static global::System.IntPtr OdGeNurbCurve2d_setFitData__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3, IntPtr jarg4, IntPtr jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static global::System.IntPtr OdGeNurbCurve2d_setEvalMode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdGeNurbCurve2d_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static global::System.IntPtr OdGeNurbCurve2d_makeOpen(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeNurbCurve2d_numWeights(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeNurbCurve2d_makeClosed(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeNurbCurve2d_purgeFitData(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeNurbCurve2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeNurbCurve2d_evalMode(global::System.Runtime.InteropServices.HandleRef jarg1)
bool isPeriodic(out double period)
Definition: OdGeCurve2d.cs:245
static HandleRef getCPtr(OdGeCurve2d obj)
Definition: OdGeCurve2d.cs:25
static HandleRef getCPtr(OdGeDoubleArray obj)
OdGe.EntityId type()
Definition: OdGeEntity2d.cs:57
OdGeKnotParameterization
Definition: OdGe.cs:276
static HandleRef getCPtr(OdGeInterval obj)
Definition: OdGeInterval.cs:26
static HandleRef getCPtr(OdGeKnotVector obj)
static HandleRef getCPtr(OdGeLine2d obj)
Definition: OdGeLine2d.cs:25
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent)
OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints, bool isPeriodic)
OdGeNurbCurve2d(int degree, OdGePolyline2d fitPolyline)
OdGeNurbCurve2d Assign(OdGeNurbCurve2d spline)
bool getParamsOfG1Discontinuity(OdGeDoubleArray params_)
OdGeNurbCurve2d makeRational()
static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeInterval domain)
void getDefinitionData(out int degree, out bool rational, out bool periodic, OdGeKnotVector knots, OdGePoint2dArray controlPoints, OdGeDoubleArray weights)
static OdGeNurbCurve2d convertFrom(OdGeCurve2d source)
bool getFitData(OdGePoint2dArray fitPoints, OdGeTol fitTolerance, out bool tangentsExist, OdGeVector2d startTangent, OdGeVector2d endTangent, ref OdGe.OdGeKnotParameterization knotParam)
OdGeNurbCurve2d makeClosed()
bool intersectWith(OdGeLine2d line2d, OdGePoint2dArray pnts2d, OdGeTol tol)
bool setFitTangents(OdGeVector2d startTangent, OdGeVector2d endTangent)
OdGeNurbCurve2d setFitData(int degree, OdGePoint2dArray fitPoints)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2dArray fitTangents, OdGeTol fitTolerance)
bool getFitData(OdGePoint2dArray fitPoints, OdGeTol fitTolerance, out bool tangentsExist, OdGeVector2d startTangent, OdGeVector2d endTangent)
OdGeNurbCurve2d setFitData(int degree, OdGePoint2dArray fitPoints, OdGeTol fitTol)
OdGeNurbCurve2d setFitData(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGe.OdGeKnotParameterization knotParam, OdGeTol fitTol)
OdGeNurbCurve2d(int degree, OdGePolyline2d fitPolyline, bool isPeriodic)
bool getFitTangents(OdGeVector2d startTangent, OdGeVector2d endTangent)
OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints, OdGeDoubleArray weights, bool isPeriodic)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2dArray fitTangents)
bool addControlPointAt(double newKnot, OdGePoint2d point)
OdGeNurbCurve2d setEvalMode()
OdGeNurbCurve2d addKnot(double newKnot)
bool setFitKnotParameterization(OdGe.OdGeKnotParameterization knotParam)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined, OdGeTol fitTolerance)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeTol fitTolerance)
OdGeNurbCurve2d makeRational(double weight)
bool getParamsOfG1Discontinuity(OdGeDoubleArray params_, OdGeTol tol)
OdGeNurbCurve2d setFitData(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGe.OdGeKnotParameterization knotParam)
OdGeNurbCurve2d insertKnot(double newKnot)
bool setFitPointAt(int fitPointIndex, OdGePoint2d point)
OdGeNurbCurve2d(IntPtr cPtr, bool cMemoryOwn)
OdGeNurbCurve2d hardTrimByParams(double newStartParam, double newEndParam)
OdGeNurbCurve2d setFitData(OdGeKnotVector fitKnots, OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGeTol fitTol)
bool intersectWith(OdGeLine2d line2d, OdGePoint2dArray pnts2d)
bool deleteFitPointAt(int fitPointIndex)
bool getFitKnotParameterization(ref OdGe.OdGeKnotParameterization knotParam)
OdGeNurbCurve2d(OdGeNurbCurve2d source)
bool addControlPointAt(double newKnot, OdGePoint2d point, double weight)
bool getFitTolerance(OdGeTol fitTolerance)
OdGeNurbCurve2d setEvalMode(bool evalMode)
OdGeNurbCurve2d setFitData(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGeTol fitTol)
bool getFitPointAt(int fitPointIndex, OdGePoint2d point)
OdGeNurbCurve2d setFitData(OdGeKnotVector fitKnots, OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent)
bool intersectWith(OdGeLine2d line2d, OdGePoint2dArray pnts2d, OdGeTol tol, OdGeDoubleArray params_)
OdGeNurbCurve2d makeNonPeriodic()
static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeInterval domain, OdGeTol tol)
static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeTol tol)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2dArray fitTangents, OdGeTol fitTolerance, bool isPeriodic)
Teigha.Core.OdGe.EntityId vb_type()
bool addFitPointAt(int fitPointIndex, OdGePoint2d point)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined, OdGe.OdGeKnotParameterization knotParam)
override void Dispose(bool disposing)
OdGeNurbCurve2d(OdGeLineSeg2d linSeg)
bool deleteControlPointAt(int index)
static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeInterval domain, OdGeTol tol, bool sameParametrization)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined)
OdGeNurbCurve2d joinWith(OdGeNurbCurve2d curve)
bool setFitTolerance(OdGeTol fitTol)
bool getParamsOfC1Discontinuity(OdGeDoubleArray params_, OdGeTol tol)
bool getParamsOfC1Discontinuity(OdGeDoubleArray params_)
OdGeNurbCurve2d makePeriodic()
static HandleRef getCPtr(OdGeNurbCurve2d obj)
double weightAt(int weightIndex)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined)
OdGeNurbCurve2d setFitData(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent)
OdGeNurbCurve2d(OdGeEllipArc2d ellipse)
OdGeNurbCurve2d setFitData(OdGeKnotVector fitKnots, OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, OdGeTol fitTol, bool isPeriodic)
OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints)
OdGeNurbCurve2d setWeightAt(int weightIndex, double weight)
OdGeNurbCurve2d(int degree, OdGeKnotVector knots, OdGePoint2dArray controlPoints, OdGeDoubleArray weights)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints, OdGeVector2d startTangent, OdGeVector2d endTangent, bool startTangentDefined, bool endTangentDefined, OdGe.OdGeKnotParameterization knotParam, OdGeTol fitTol)
static OdGeNurbCurve2d convertFrom(OdGeCurve2d source, OdGeTol tol, bool sameParametrization)
OdGeNurbCurve2d(OdGePoint2dArray fitPoints)
OdGeNurbCurve2d elevateDegree(int plusDegree)
static HandleRef getCPtr(OdGePoint2dArray obj)
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector2d obj)
Definition: OdGeVector2d.cs:26