Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeCurveBoundary.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 OdGeCurveBoundary : 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 OdGeCurveBoundary(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(OdGeCurveBoundary 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 void getContour(out int numCurves, out OdGeEntity3d[] crv3d, out OdGeCurve2d[] crv2d, out bool[] orientation3d, out bool[] orientation2d)
52 {
53 HandleRef crv3dPtr, crv2dPtr;
54 IntPtr orientation3dPtr, orientation2dPtr;
55 GlobalsPINVOKE.OdGeCurveBoundary_getContour(swigCPtr, out numCurves, out crv3dPtr, out crv2dPtr, out orientation3dPtr, out orientation2dPtr);
57 crv3d = new OdGeEntity3d[numCurves];
58 crv2d = new OdGeCurve2d[numCurves];
59 for (int Ctr = 0; Ctr < numCurves; Ctr++)
60 {
61 crv3d[Ctr] = new OdGeEntity3d(Marshal.ReadIntPtr(crv3dPtr, Ctr * Marshal.SizeOf(Marshal.SizeOf(typeof(IntPtr)))), false);
62 crv2d[Ctr] = new OdGeCurve2d(Marshal.ReadIntPtr(crv2dPtr, Ctr * Marshal.SizeOf(Marshal.SizeOf(typeof(IntPtr)))), false);
63 }
64 orientation3d = Helpers.UnMarshalBoolFixedArray(orientation3dPtr, numCurves);
65 orientation2d = Helpers.UnMarshalBoolFixedArray(orientation2dPtr, numCurves);
66 }
67
68 public OdGeCurveBoundary() : this(GlobalsPINVOKE.new_OdGeCurveBoundary__SWIG_0(), true) {
70 }
71
72 public OdGeCurveBoundary(int numCurves, OdGeEntity3d[] /*SIMPLE_REFARRAY*/ crv3d, OdGeCurve2d[] /*SIMPLE_REFARRAY*/ crv2d, bool[] /*SIMPLE_ARRAY*/ orientation3d, bool[] /*SIMPLE_ARRAY*/ orientation2d, bool makeCopy) : this(GlobalsPINVOKE.new_OdGeCurveBoundary__SWIG_1(numCurves, crv3d, crv2d, Teigha.Core.Helpers.MarshalboolFixedArray(orientation3d), Teigha.Core.Helpers.MarshalboolFixedArray(orientation2d), makeCopy), true) {
74 }
75
76 public OdGeCurveBoundary(int numCurves, OdGeEntity3d[] /*SIMPLE_REFARRAY*/ crv3d, OdGeCurve2d[] /*SIMPLE_REFARRAY*/ crv2d, bool[] /*SIMPLE_ARRAY*/ orientation3d, bool[] /*SIMPLE_ARRAY*/ orientation2d) : this(GlobalsPINVOKE.new_OdGeCurveBoundary__SWIG_2(numCurves, crv3d, crv2d, Teigha.Core.Helpers.MarshalboolFixedArray(orientation3d), Teigha.Core.Helpers.MarshalboolFixedArray(orientation2d)), true) {
78 }
79
80 public OdGeCurveBoundary(OdGeCurveBoundary source) : this(GlobalsPINVOKE.new_OdGeCurveBoundary__SWIG_3(OdGeCurveBoundary.getCPtr(source)), true) {
82 }
83
87 return ret;
88 }
89
90 public bool isDegenerate() {
93 return ret;
94 }
95
96 public bool isDegenerate(OdGePosition3d degenPoint, OdGeCurve2d[] /*SIMPLE_REFARRAY*/ paramCurve) {
97 bool ret = GlobalsPINVOKE.OdGeCurveBoundary_isDegenerate__SWIG_1(swigCPtr, OdGePosition3d.getCPtr(degenPoint), paramCurve);
99 return ret;
100 }
101
102 public int numElements() {
105 return ret;
106 }
107
108 public OdGeCurveBoundary set(int numCurves, OdGeEntity3d[] /*SIMPLE_REFARRAY*/ crv3d, OdGeCurve2d[] /*SIMPLE_REFARRAY*/ crv2d, bool[] /*SIMPLE_ARRAY*/ orientation3d, bool[] /*SIMPLE_ARRAY*/ orientation2d, bool makeCopy) {
109 OdGeCurveBoundary ret = new OdGeCurveBoundary(GlobalsPINVOKE.OdGeCurveBoundary_set__SWIG_0(swigCPtr, numCurves, crv3d, crv2d, Teigha.Core.Helpers.MarshalboolFixedArray(orientation3d), Teigha.Core.Helpers.MarshalboolFixedArray(orientation2d), makeCopy), false);
111 return ret;
112 }
113
114 public OdGeCurveBoundary set(int numCurves, OdGeEntity3d[] /*SIMPLE_REFARRAY*/ crv3d, OdGeCurve2d[] /*SIMPLE_REFARRAY*/ crv2d, bool[] /*SIMPLE_ARRAY*/ orientation3d, bool[] /*SIMPLE_ARRAY*/ orientation2d) {
115 OdGeCurveBoundary ret = new OdGeCurveBoundary(GlobalsPINVOKE.OdGeCurveBoundary_set__SWIG_1(swigCPtr, numCurves, crv3d, crv2d, Teigha.Core.Helpers.MarshalboolFixedArray(orientation3d), Teigha.Core.Helpers.MarshalboolFixedArray(orientation2d)), false);
117 return ret;
118 }
119
120 public bool isOwnerOfCurves() {
123 return ret;
124 }
125
129 return ret;
130 }
131
132}
133
134}
static global::System.Exception Retrieve()
static bool OdGeCurveBoundary_isDegenerate__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCurveBoundary_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGeCurveBoundary(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeCurveBoundary_numElements(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeCurveBoundary_isDegenerate__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, [In, MarshalAs(UnmanagedType.LPArray)]OdGeCurve2d[] jarg3)
static global::System.IntPtr OdGeCurveBoundary_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, [In, MarshalAs(UnmanagedType.LPArray)]OdGeEntity3d[] jarg3, [In, MarshalAs(UnmanagedType.LPArray)]OdGeCurve2d[] jarg4, IntPtr jarg5, IntPtr jarg6, bool jarg7)
static global::System.IntPtr OdGeCurveBoundary_setToOwnCurves(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeCurveBoundary_getContour(HandleRef jarg1, out int jarg2, out HandleRef jarg3, out HandleRef jarg4, out IntPtr jarg5, out IntPtr jarg6)
static bool OdGeCurveBoundary_isOwnerOfCurves(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCurveBoundary_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, [In, MarshalAs(UnmanagedType.LPArray)]OdGeEntity3d[] jarg3, [In, MarshalAs(UnmanagedType.LPArray)]OdGeCurve2d[] jarg4, IntPtr jarg5, IntPtr jarg6)
static HandleRef getCPtr(OdGeCurveBoundary obj)
OdGeCurveBoundary(int numCurves, OdGeEntity3d[] crv3d, OdGeCurve2d[] crv2d, bool[] orientation3d, bool[] orientation2d)
virtual void Dispose(bool disposing)
OdGeCurveBoundary(int numCurves, OdGeEntity3d[] crv3d, OdGeCurve2d[] crv2d, bool[] orientation3d, bool[] orientation2d, bool makeCopy)
OdGeCurveBoundary(IntPtr cPtr, bool cMemoryOwn)
OdGeCurveBoundary Assign(OdGeCurveBoundary crvBoundary)
OdGeCurveBoundary(OdGeCurveBoundary source)
OdGeCurveBoundary setToOwnCurves()
void getContour(out int numCurves, out OdGeEntity3d[] crv3d, out OdGeCurve2d[] crv2d, out bool[] orientation3d, out bool[] orientation2d)
bool isDegenerate(OdGePosition3d degenPoint, OdGeCurve2d[] paramCurve)
static HandleRef getCPtr(OdGePosition3d obj)