Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeKnotVector.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
16public class OdGeKnotVector : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGeKnotVector(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGeKnotVector obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public double this[int i]
52 {
53 get { return GetItem(i); }
54 }
55
63
65 get {
66 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeKnotVector_globalKnotTolerance2d_get();
67 OdGeVector2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector2d(cPtr, false);
69 return ret;
70 }
71 }
72
73 public OdGeKnotVector(double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_0(tol), true) {
75 }
76
77 public OdGeKnotVector() : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_1(), true) {
79 }
80
81 public OdGeKnotVector(int size, int growSize, double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_2(size, growSize, tol), true) {
83 }
84
85 public OdGeKnotVector(int size, int growSize) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_3(size, growSize), true) {
87 }
88
89 public OdGeKnotVector(int size, double[] /*SIMPLE_ARRAY*/ source, double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_4(size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source), tol), true) {
91 }
92
93 public OdGeKnotVector(int size, double[] /*SIMPLE_ARRAY*/ source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_5(size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source)), true) {
95 }
96
97 public OdGeKnotVector(int plusMult, OdGeKnotVector source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_6(plusMult, OdGeKnotVector.getCPtr(source)), true) {
99 }
100
101 public OdGeKnotVector(OdGeKnotVector source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_7(OdGeKnotVector.getCPtr(source)), true) {
103 }
104
105 public OdGeKnotVector(OdGeDoubleArray source, double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_8(OdGeDoubleArray.getCPtr(source), tol), true) {
107 }
108
109 public OdGeKnotVector(OdGeDoubleArray source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_9(OdGeDoubleArray.getCPtr(source)), true) {
111 }
112
118
124
125 public double GetItem(int i) {
126 double ret = GlobalsPINVOKE.OdGeKnotVector_GetItem(swigCPtr, i);
128 return ret;
129 }
130
131 public double startParam() {
132 double ret = GlobalsPINVOKE.OdGeKnotVector_startParam(swigCPtr);
134 return ret;
135 }
136
137 public double endParam() {
138 double ret = GlobalsPINVOKE.OdGeKnotVector_endParam(swigCPtr);
140 return ret;
141 }
142
143 public int multiplicityAt(int knotIndex) {
144 int ret = GlobalsPINVOKE.OdGeKnotVector_multiplicityAt__SWIG_0(swigCPtr, knotIndex);
146 return ret;
147 }
148
154
155 public int getInterval(int order, double param, OdGeInterval interval) {
156 int ret = GlobalsPINVOKE.OdGeKnotVector_getInterval(swigCPtr, order, param, OdGeInterval.getCPtr(interval));
158 return ret;
159 }
160
165
170
171 public bool contains(double param) {
172 bool ret = GlobalsPINVOKE.OdGeKnotVector_contains(swigCPtr, param);
174 return ret;
175 }
176
177 public bool isOn(double knot) {
178 bool ret = GlobalsPINVOKE.OdGeKnotVector_isOn(swigCPtr, knot);
180 return ret;
181 }
182
188
189 public OdGeKnotVector removeAt(int knotIndex) {
190 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_removeAt(swigCPtr, knotIndex), false);
192 return ret;
193 }
194
195 public OdGeKnotVector removeSubVector(int startIndex, int endIndex) {
196 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_removeSubVector(swigCPtr, startIndex, endIndex), false);
198 return ret;
199 }
200
201 public OdGeKnotVector insertAt(int knotIndex, double knot, int multiplicity) {
202 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_insertAt__SWIG_0(swigCPtr, knotIndex, knot, multiplicity), false);
204 return ret;
205 }
206
207 public OdGeKnotVector insertAt(int knotIndex, double knot) {
208 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_insertAt__SWIG_1(swigCPtr, knotIndex, knot), false);
210 return ret;
211 }
212
213 public OdGeKnotVector insert(double param) {
214 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_insert(swigCPtr, param), false);
216 return ret;
217 }
218
219 public OdGeKnotVector insertIn(double param) {
220 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_insertIn(swigCPtr, param), false);
222 return ret;
223 }
224
225 public int append(double knot) {
226 int ret = GlobalsPINVOKE.OdGeKnotVector_append__SWIG_0(swigCPtr, knot);
228 return ret;
229 }
230
236
242
243 public int split(double param, OdGeKnotVector pKnotHead, int multLast, OdGeKnotVector pKnotTail, int multFirst) {
244 int ret = GlobalsPINVOKE.OdGeKnotVector_split(swigCPtr, param, OdGeKnotVector.getCPtr(pKnotHead), multLast, OdGeKnotVector.getCPtr(pKnotTail), multFirst);
246 return ret;
247 }
248
249 public OdGeKnotVector setRange(double lower, double upper) {
250 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_setRange(swigCPtr, lower, upper), false);
252 return ret;
253 }
254
255 public double tolerance() {
256 double ret = GlobalsPINVOKE.OdGeKnotVector_tolerance(swigCPtr);
258 return ret;
259 }
260
266
267 public int length() {
268 int ret = GlobalsPINVOKE.OdGeKnotVector_length(swigCPtr);
270 return ret;
271 }
272
273 public bool isEmpty() {
274 bool ret = GlobalsPINVOKE.OdGeKnotVector_isEmpty(swigCPtr);
276 return ret;
277 }
278
284
290
296
302
308
314
315 public OdGeKnotVector set(int size, double[] /*SIMPLE_ARRAY*/ source, double tol) {
316 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_set__SWIG_0(swigCPtr, size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source), tol), false);
318 return ret;
319 }
320
321 public OdGeKnotVector set(int size, double[] /*SIMPLE_ARRAY*/ source) {
322 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_set__SWIG_1(swigCPtr, size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source)), false);
324 return ret;
325 }
326
327 public int multiplicityAt(double param) {
328 int ret = GlobalsPINVOKE.OdGeKnotVector_multiplicityAt__SWIG_1(swigCPtr, param);
330 return ret;
331 }
332
340
341}
342
343}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeKnotVector_removeSubVector(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void OdGeKnotVector_getDistinctKnots__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeKnotVector_globalKnotTolerance2d_get()
static int OdGeKnotVector_growLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeKnotVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeKnotVector_setPhysicalLength(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static double OdGeKnotVector_tolerance(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeKnotVector_isEmpty(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeKnotVector_numIntervals(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeKnotVector_insertAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static double OdGeKnotVector_globalKnotTolerance_get()
static double OdGeKnotVector_GetItem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdGeKnotVector_contains(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_setRange(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static int OdGeKnotVector_length(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeKnotVector_startParam(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_insert(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_setGrowLength(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int OdGeKnotVector_getInterval(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdGeKnotVector_getDistinctKnots__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeKnotVector_removeAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeKnotVector_insertAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, int jarg4)
static int OdGeKnotVector_logicalLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeKnotVector_split(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, int jarg6)
static int OdGeKnotVector_multiplicityAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static int OdGeKnotVector_physicalLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeKnotVector_multiplicityAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeKnotVector_setLogicalLength(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeKnotVector_getArray__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_append__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeKnotVector_endParam(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeKnotVector_isOn(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_Assign__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeKnotVector_append__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static global::System.IntPtr OdGeKnotVector_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3, double jarg4)
static int OdGeKnotVector_append__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_setTolerance(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_insertIn(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_reverse(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGeInterval obj)
OdGeKnotVector(int plusMult, OdGeKnotVector source)
bool contains(double param)
static double globalKnotTolerance
OdGeKnotVector setPhysicalLength(int physLength)
OdGeKnotVector insertAt(int knotIndex, double knot)
OdGeKnotVector setLogicalLength(int size)
OdGeKnotVector Assign(OdGeDoubleArray dblArray)
OdGeKnotVector setRange(double lower, double upper)
void getDistinctKnots(OdGeDoubleArray knots, OdIntArray multiplicity)
int split(double param, OdGeKnotVector pKnotHead, int multLast, OdGeKnotVector pKnotTail, int multFirst)
OdGeKnotVector(OdGeDoubleArray source, double tol)
OdGeKnotVector(int size, int growSize)
int multiplicityAt(double param)
OdGeKnotVector removeAt(int knotIndex)
OdGeKnotVector(int size, int growSize, double tol)
OdGeKnotVector(int size, double[] source, double tol)
OdGeKnotVector Assign(OdGeKnotVector knotVector)
OdGeKnotVector append(OdGeKnotVector tail)
OdGeKnotVector(OdGeDoubleArray source)
static HandleRef getCPtr(OdGeKnotVector obj)
static OdGeVector2d globalKnotTolerance2d
OdGeKnotVector removeSubVector(int startIndex, int endIndex)
OdGeKnotVector insertAt(int knotIndex, double knot, int multiplicity)
int getInterval(int order, double param, OdGeInterval interval)
int multiplicityAt(int knotIndex)
OdGeKnotVector append(OdGeKnotVector tail, double knotRatio)
OdGeKnotVector insert(double param)
void getDistinctKnots(OdGeDoubleArray knots)
OdGeKnotVector insertIn(double param)
OdGeKnotVector setGrowLength(int rowLength)
OdGeKnotVector(OdGeKnotVector source)
OdGeKnotVector(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
OdGeKnotVector(int size, double[] source)
OdGeKnotVector setTolerance(double tol)
static HandleRef getCPtr(OdIntArray obj)
Definition OdIntArray.cs:28