Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
BrepBuilderInitialCoedge.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 BrepBuilderInitialCoedge : 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 BrepBuilderInitialCoedge(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(BrepBuilderInitialCoedge 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
52 set {
55 }
56 get {
59 return ret;
60 }
61 }
62
63 public BrepBuilderInitialCoedge() : this(GlobalsPINVOKE.new_BrepBuilderInitialCoedge__SWIG_0(), true) {
65 }
66
67 public BrepBuilderInitialCoedge(OdGeCurve2d curve, OdBrepBuilder.EntityDirection direction, uint edgeIndex) : this(GlobalsPINVOKE.new_BrepBuilderInitialCoedge__SWIG_1(OdGeCurve2d.getCPtr(curve), (int)direction, edgeIndex), true) {
69 }
70
72 //MemoryManager mMan = MemoryManager.GetMemoryManager();
73 //MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #15
75
76 OdGeCurve2d ret = null;
77 //if (null != mTrans)
78 //{
79 //mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve2d>(typeof(OdGeCurve2d), ptr, true));
80 ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve2d>(typeof(OdGeCurve2d), ptr, false);
81 //}
82 //else
83 //{
84 // ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve2d>(typeof(OdGeCurve2d), ptr, true);
85 //}
86
88 return ret;
89}
90
91 public void SetCurve(OdGeCurve2d curve) {
94 }
95
96 public uint GetEdgeIndex() {
99 return ret;
100 }
101
102 public void SetEdgeIndex(uint index) {
105 }
106
107}
108
109}
static HandleRef getCPtr(BrepBuilderInitialCoedge obj)
BrepBuilderInitialCoedge(IntPtr cPtr, bool cMemoryOwn)
BrepBuilderInitialCoedge(OdGeCurve2d curve, OdBrepBuilder.EntityDirection direction, uint edgeIndex)
OdBrepBuilder.EntityDirection direction
static global::System.Exception Retrieve()
static int BrepBuilderInitialCoedge_direction_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint BrepBuilderInitialCoedge_GetEdgeIndex(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr BrepBuilderInitialCoedge_GetCurve(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BrepBuilderInitialCoedge_SetCurve(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void BrepBuilderInitialCoedge_direction_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void BrepBuilderInitialCoedge_SetEdgeIndex(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static void delete_BrepBuilderInitialCoedge(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeCurve2d obj)
Definition: OdGeCurve2d.cs:25