Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdBrepBuilder.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 OdBrepBuilder : 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 OdBrepBuilder(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(OdBrepBuilder 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 static UInt32 kDefaultShellId {
52 get {
53 /*SIMPLETYPE*/
56 return ret;
57 }
58 }
59
60 public static UInt32 kDefaultVertexId {
61 get {
62 /*SIMPLETYPE*/
65 return ret;
66 }
67 }
68
69 public OdBrepBuilder() : this(GlobalsPINVOKE.new_OdBrepBuilder(), true) {
71 }
72
78
79 public void set(IntPtr pFile) {
80 GlobalsPINVOKE.OdBrepBuilder_set(swigCPtr, pFile /*SIMPLETYPE*/);
82 }
83
84 public UInt32 addCoedge(UInt32 /*SIMPLETYPE cstype*/ loopId, UInt32 /*SIMPLETYPE cstype*/ edgeId, OdBrepBuilder.EntityDirection codgeDirection, OdGeCurve2d pParCur) {
85// test csout
86 /*SIMPLETYPE*/
87 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addCoedge__SWIG_0(swigCPtr, loopId /*SIMPLETYPE csin*/, edgeId /*SIMPLETYPE csin*/, (int)codgeDirection, OdGeCurve2d.getCPtr(pParCur));
89 return ret;
90 }
91
92 public UInt32 addCoedge(UInt32 /*SIMPLETYPE cstype*/ loopId, UInt32 /*SIMPLETYPE cstype*/ edgeId, OdBrepBuilder.EntityDirection codgeDirection) {
93// test csout
94 /*SIMPLETYPE*/
95 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addCoedge__SWIG_1(swigCPtr, loopId /*SIMPLETYPE csin*/, edgeId /*SIMPLETYPE csin*/, (int)codgeDirection);
97 return ret;
98 }
99
100 public UInt32 addCoedge(UInt32 /*SIMPLETYPE cstype*/ loopId, UInt32 /*SIMPLETYPE cstype*/ edgeId) {
101// test csout
102 /*SIMPLETYPE*/
103 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addCoedge__SWIG_2(swigCPtr, loopId /*SIMPLETYPE csin*/, edgeId /*SIMPLETYPE csin*/);
105 return ret;
106 }
107
108 public UInt32 addEdge(OdGeCurve3d pCurveForEdge) {
109// test csout
110 /*SIMPLETYPE*/
111 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addEdge__SWIG_0(swigCPtr, OdGeCurve3d.getCPtr(pCurveForEdge));
113 return ret;
114 }
115
116 public UInt32 addEdge(OdGeCurve3d pCurveForEdge, UInt32 /*SIMPLETYPE cstype*/ vertex1Id, UInt32 /*SIMPLETYPE cstype*/ vertex2Id) {
117// test csout
118 /*SIMPLETYPE*/
119 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addEdge__SWIG_1(swigCPtr, OdGeCurve3d.getCPtr(pCurveForEdge), vertex1Id /*SIMPLETYPE csin*/, vertex2Id /*SIMPLETYPE csin*/);
121 return ret;
122 }
123
124 public UInt32 addVertex(OdGePoint3d point) {
125// test csout
126 /*SIMPLETYPE*/
127 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addVertex(swigCPtr, OdGePoint3d.getCPtr(point));
129 return ret;
130 }
131
132 public UInt32 addFace(OdGeSurface pSurf, OdBrepBuilder.EntityDirection faceDirection, UInt32 /*SIMPLETYPE cstype*/ shellId) {
133// test csout
134 /*SIMPLETYPE*/
135 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addFace__SWIG_0(swigCPtr, OdGeSurface.getCPtr(pSurf), (int)faceDirection, shellId /*SIMPLETYPE csin*/);
137 return ret;
138 }
139
140 public UInt32 addFace(OdGeSurface pSurf, OdBrepBuilder.EntityDirection faceDirection) {
141// test csout
142 /*SIMPLETYPE*/
143 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addFace__SWIG_1(swigCPtr, OdGeSurface.getCPtr(pSurf), (int)faceDirection);
145 return ret;
146 }
147
148 public UInt32 addLoop(UInt32 /*SIMPLETYPE cstype*/ faceId) {
149// test csout
150 /*SIMPLETYPE*/
151 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addLoop(swigCPtr, faceId /*SIMPLETYPE csin*/);
153 return ret;
154 }
155
156 public UInt32 addShell(UInt32 /*SIMPLETYPE cstype*/ complexId) {
157// test csout
158 /*SIMPLETYPE*/
159 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addShell(swigCPtr, complexId /*SIMPLETYPE csin*/);
161 return ret;
162 }
163
164 public UInt32 addComplex() {
165// test csout
166 /*SIMPLETYPE*/
167 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_addComplex(swigCPtr);
169 return ret;
170 }
171
176
182
183 public void finishComplex(UInt32 /*SIMPLETYPE cstype*/ complexId) {
184 GlobalsPINVOKE.OdBrepBuilder_finishComplex(swigCPtr, complexId /*SIMPLETYPE csin*/);
186 }
187
188 public void finishShell(UInt32 /*SIMPLETYPE cstype*/ shellId) {
189 GlobalsPINVOKE.OdBrepBuilder_finishShell(swigCPtr, shellId /*SIMPLETYPE csin*/);
191 }
192
193 public void finishFace(UInt32 /*SIMPLETYPE cstype*/ faceId) {
194 GlobalsPINVOKE.OdBrepBuilder_finishFace(swigCPtr, faceId /*SIMPLETYPE csin*/);
196 }
197
198 public void finishLoop(UInt32 /*SIMPLETYPE cstype*/ loopId) {
199 GlobalsPINVOKE.OdBrepBuilder_finishLoop(swigCPtr, loopId /*SIMPLETYPE csin*/);
201 }
202
203 public OdRxObject getResult() {// OdRxObjectPtr
204 MemoryManager mMan = MemoryManager.GetMemoryManager();
205 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
206 IntPtr ptr = GlobalsPINVOKE.OdBrepBuilder_getResult(swigCPtr);
207
208 OdRxObject ret = null;
209 if (null != mTrans)
210 {
211 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
212 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
213 }
214 else
215 {
216 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
217 }
218
220 return ret;
221}
222
228
234
235 public bool isValidEdgeId(UInt32 /*SIMPLETYPE cstype*/ edgeId) {
236 bool ret = GlobalsPINVOKE.OdBrepBuilder_isValidEdgeId(swigCPtr, edgeId /*SIMPLETYPE csin*/);
238 return ret;
239 }
240
241 public bool isValidComplexId(UInt32 /*SIMPLETYPE cstype*/ complexId) {
242 bool ret = GlobalsPINVOKE.OdBrepBuilder_isValidComplexId(swigCPtr, complexId /*SIMPLETYPE csin*/);
244 return ret;
245 }
246
247 public bool isValidShellId(UInt32 /*SIMPLETYPE cstype*/ shellId) {
248 bool ret = GlobalsPINVOKE.OdBrepBuilder_isValidShellId(swigCPtr, shellId /*SIMPLETYPE csin*/);
250 return ret;
251 }
252
253 public bool isValidFaceId(UInt32 /*SIMPLETYPE cstype*/ faceId) {
254 bool ret = GlobalsPINVOKE.OdBrepBuilder_isValidFaceId(swigCPtr, faceId /*SIMPLETYPE csin*/);
256 return ret;
257 }
258
259 public bool isValidLoopId(UInt32 /*SIMPLETYPE cstype*/ loopId) {
260 bool ret = GlobalsPINVOKE.OdBrepBuilder_isValidLoopId(swigCPtr, loopId /*SIMPLETYPE csin*/);
262 return ret;
263 }
264
270
275
276 public void setFlag(UInt32 /*SIMPLETYPE cstype*/ id, UInt32 flag, bool enable) {
277 GlobalsPINVOKE.OdBrepBuilder_setFlag(swigCPtr, id /*SIMPLETYPE csin*/, flag /*SIMPLETYPE*/, enable);
279 }
280
281 public OdResult setFacesMaterial(UInt32 /*SIMPLETYPE cstype*/ faceId, OdDbStub materialId) {
282 OdResult ret = (OdResult)GlobalsPINVOKE.OdBrepBuilder_setFacesMaterial(swigCPtr, faceId /*SIMPLETYPE csin*/, OdDbStub.getCPtr(materialId));
284 return ret;
285 }
286
287 public OdResult setFaceMaterialMapping(UInt32 /*SIMPLETYPE cstype*/ faceId, OdGiMapper materialMapper) {
288 OdResult ret = (OdResult)GlobalsPINVOKE.OdBrepBuilder_setFaceMaterialMapping(swigCPtr, faceId /*SIMPLETYPE csin*/, OdGiMapper.getCPtr(materialMapper));
290 return ret;
291 }
292
293 public OdResult setEdgeColor(UInt32 /*SIMPLETYPE cstype*/ edgeId, OdCmEntityColor edgeColor) {
294 OdResult ret = (OdResult)GlobalsPINVOKE.OdBrepBuilder_setEdgeColor(swigCPtr, edgeId /*SIMPLETYPE csin*/, OdCmEntityColor.getCPtr(edgeColor));
296 return ret;
297 }
298
299 public OdResult setFaceColor(UInt32 /*SIMPLETYPE cstype*/ faceId, OdCmEntityColor faceColor) {
300 OdResult ret = (OdResult)GlobalsPINVOKE.OdBrepBuilder_setFaceColor(swigCPtr, faceId /*SIMPLETYPE csin*/, OdCmEntityColor.getCPtr(faceColor));
302 return ret;
303 }
304
305 public OdRxObject finish() {// OdRxObjectPtr
306 MemoryManager mMan = MemoryManager.GetMemoryManager();
307 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
308 IntPtr ptr = GlobalsPINVOKE.OdBrepBuilder_finish(swigCPtr);
309
310 OdRxObject ret = null;
311 if (null != mTrans)
312 {
313 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
314 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
315 }
316 else
317 {
318 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
319 }
320
322 return ret;
323}
324
325 public void setTag(UInt32 /*SIMPLETYPE cstype*/ id, UInt32 tag) {
326 GlobalsPINVOKE.OdBrepBuilder_setTag(swigCPtr, id /*SIMPLETYPE csin*/, tag /*SIMPLETYPE*/);
328 }
329
334
339
347
348 public bool isValid() {
349 bool ret = GlobalsPINVOKE.OdBrepBuilder_isValid(swigCPtr);
351 return ret;
352 }
353
354 public UInt32 getBBSettings() {
355// test csout
356 /*SIMPLETYPE*/
357 UInt32 ret = GlobalsPINVOKE.OdBrepBuilder_getBBSettings(swigCPtr);
359 return ret;
360 }
361
362 public void setBBSettings(UInt32 flag, bool enable) {
363 GlobalsPINVOKE.OdBrepBuilder_setBBSettings(swigCPtr, flag /*SIMPLETYPE*/, enable);
365 }
366
367 public enum EntityDirection {
368 kForward,
370 }
371
372}
373
374}
static global::System.Exception Retrieve()
static bool OdBrepBuilder_isValidLoopId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static UInt32 OdBrepBuilder_getBBSettings(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdBrepBuilder_getResult(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrepBuilder_setFacesMaterial(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdBrepBuilder_allowRemovalOfProblematicFaces(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdBrepBuilder_addLoop(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static UInt32 OdBrepBuilder_addComplex(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepBuilder_finishFace(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdBrepBuilder_enableValidator__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrepBuilder_setFaceMaterialMapping(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdBrepBuilder_getType(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdBrepBuilder_addShell(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdBrepBuilder_finishLoop(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static IntPtr OdBrepBuilder_finish(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepBuilder_finishShell(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdBrepBuilder_setFlag(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3, bool jarg4)
static UInt32 OdBrepBuilder_addEdge__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static UInt32 OdBrepBuilder_addCoedge__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3)
static bool OdBrepBuilder_isPermittedSurfaceType(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static bool OdBrepBuilder_isResultAvailable(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepBuilder_setBBSettings(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, bool jarg3)
static int OdBrepBuilder_setFaceColor(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdBrepBuilder_isValidFaceId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void delete_OdBrepBuilder(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepBuilder_finishComplex(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdBrepBuilder_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static UInt32 OdBrepBuilder_kDefaultVertexId_get()
static UInt32 OdBrepBuilder_addCoedge__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3, int jarg4)
static UInt32 OdBrepBuilder_addCoedge__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3, int jarg4, HandleRef jarg5)
static bool OdBrepBuilder_isValidShellId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdBrepBuilder_enableValidator__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdBrepBuilder_getValidationErrors(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdBrepBuilder_addVertex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdBrepBuilder_kDefaultShellId_get()
static UInt32 OdBrepBuilder_addFace__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3)
static bool OdBrepBuilder_isValidComplexId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdBrepBuilder_isValidEdgeId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdBrepBuilder_setTag(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3)
static UInt32 OdBrepBuilder_addFace__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3, UInt32 jarg4)
static UInt32 OdBrepBuilder_addEdge__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, UInt32 jarg3, UInt32 jarg4)
static bool OdBrepBuilder_canAddGeometry(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrepBuilder_setEdgeColor(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdBrepBuilder_removedSomeFaces(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepBuilder_setAllowShortEdges(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrepBuilder_isValid(global::System.Runtime.InteropServices.HandleRef jarg1)
void setBBSettings(UInt32 flag, bool enable)
void finishFace(UInt32 faceId)
UInt32 addLoop(UInt32 faceId)
void setTag(UInt32 id, UInt32 tag)
UInt32 addVertex(OdGePoint3d point)
UInt32 addEdge(OdGeCurve3d pCurveForEdge, UInt32 vertex1Id, UInt32 vertex2Id)
void setFlag(UInt32 id, UInt32 flag, bool enable)
bool isValidComplexId(UInt32 complexId)
UInt32 addFace(OdGeSurface pSurf, OdBrepBuilder.EntityDirection faceDirection, UInt32 shellId)
OdResult setFaceColor(UInt32 faceId, OdCmEntityColor faceColor)
ValidationErrors getValidationErrors()
bool isValidEdgeId(UInt32 edgeId)
bool isValidFaceId(UInt32 faceId)
bool isValidLoopId(UInt32 loopId)
UInt32 addCoedge(UInt32 loopId, UInt32 edgeId)
UInt32 addEdge(OdGeCurve3d pCurveForEdge)
void finishLoop(UInt32 loopId)
void finishComplex(UInt32 complexId)
OdResult setEdgeColor(UInt32 edgeId, OdCmEntityColor edgeColor)
bool isPermittedSurfaceType(OdGeSurface pSurf)
UInt32 addCoedge(UInt32 loopId, UInt32 edgeId, OdBrepBuilder.EntityDirection codgeDirection)
UInt32 addShell(UInt32 complexId)
OdResult setFacesMaterial(UInt32 faceId, OdDbStub materialId)
static UInt32 kDefaultShellId
UInt32 addCoedge(UInt32 loopId, UInt32 edgeId, OdBrepBuilder.EntityDirection codgeDirection, OdGeCurve2d pParCur)
void enableValidator(bool bEnable)
static HandleRef getCPtr(OdBrepBuilder obj)
OdResult setFaceMaterialMapping(UInt32 faceId, OdGiMapper materialMapper)
UInt32 addFace(OdGeSurface pSurf, OdBrepBuilder.EntityDirection faceDirection)
static UInt32 kDefaultVertexId
virtual void Dispose(bool disposing)
void finishShell(UInt32 shellId)
bool isValidShellId(UInt32 shellId)
OdBrepBuilder(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdCmEntityColor obj)
static HandleRef getCPtr(OdDbStub obj)
Definition OdDbStub.cs:26
static HandleRef getCPtr(OdGeCurve2d obj)
static HandleRef getCPtr(OdGeCurve3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeSurface obj)
static HandleRef getCPtr(OdGiMapper obj)
Definition OdGiMapper.cs:26