Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdIBrepBuilder.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 OdIBrepBuilder : 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 OdIBrepBuilder(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(OdIBrepBuilder 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 virtual BrepType getType() {
54 return ret;
55 }
56
57 public virtual UInt32 addCoedge(UInt32 /*SIMPLETYPE cstype*/ loopId, UInt32 /*SIMPLETYPE cstype*/ edgeId, bool isCoedgeReversed, OdGeCurve2d pParCur) {
58// test csout
59 /*SIMPLETYPE*/
60 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addCoedge__SWIG_0(swigCPtr, loopId /*SIMPLETYPE csin*/, edgeId /*SIMPLETYPE csin*/, isCoedgeReversed, OdGeCurve2d.getCPtr(pParCur));
62 return ret;
63 }
64
65 public virtual UInt32 addCoedge(UInt32 /*SIMPLETYPE cstype*/ loopId, UInt32 /*SIMPLETYPE cstype*/ edgeId, bool isCoedgeReversed) {
66// test csout
67 /*SIMPLETYPE*/
68 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addCoedge__SWIG_1(swigCPtr, loopId /*SIMPLETYPE csin*/, edgeId /*SIMPLETYPE csin*/, isCoedgeReversed);
70 return ret;
71 }
72
73 public virtual UInt32 addCoedge(UInt32 /*SIMPLETYPE cstype*/ loopId, UInt32 /*SIMPLETYPE cstype*/ edgeId) {
74// test csout
75 /*SIMPLETYPE*/
76 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addCoedge__SWIG_2(swigCPtr, loopId /*SIMPLETYPE csin*/, edgeId /*SIMPLETYPE csin*/);
78 return ret;
79 }
80
81 public virtual UInt32 addEdge(OdGeCurve3d pCurveForEdge) {
82// test csout
83 /*SIMPLETYPE*/
84 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addEdge__SWIG_0(swigCPtr, OdGeCurve3d.getCPtr(pCurveForEdge));
86 return ret;
87 }
88
89 public virtual UInt32 addEdge(OdGeCurve3d pCurveForEdge, UInt32 /*SIMPLETYPE cstype*/ vertex1Id, UInt32 /*SIMPLETYPE cstype*/ vertex2Id) {
90// test csout
91 /*SIMPLETYPE*/
92 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addEdge__SWIG_1(swigCPtr, OdGeCurve3d.getCPtr(pCurveForEdge), vertex1Id /*SIMPLETYPE csin*/, vertex2Id /*SIMPLETYPE csin*/);
94 return ret;
95 }
96
97 public virtual UInt32 addVertex(OdGePoint3d point) {
98// test csout
99 /*SIMPLETYPE*/
100 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addVertex(swigCPtr, OdGePoint3d.getCPtr(point));
102 return ret;
103 }
104
105 public virtual UInt32 addFace(OdGeSurface pSurf, bool isFaceReversed, UInt32 /*SIMPLETYPE cstype*/ shellId) {
106// test csout
107 /*SIMPLETYPE*/
108 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addFace__SWIG_0(swigCPtr, OdGeSurface.getCPtr(pSurf), isFaceReversed, shellId /*SIMPLETYPE csin*/);
110 return ret;
111 }
112
113 public virtual UInt32 addFace(OdGeSurface pSurf, bool isFaceReversed) {
114// test csout
115 /*SIMPLETYPE*/
116 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addFace__SWIG_1(swigCPtr, OdGeSurface.getCPtr(pSurf), isFaceReversed);
118 return ret;
119 }
120
121 public virtual UInt32 addLoop(UInt32 /*SIMPLETYPE cstype*/ faceId) {
122// test csout
123 /*SIMPLETYPE*/
124 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addLoop(swigCPtr, faceId /*SIMPLETYPE csin*/);
126 return ret;
127 }
128
129 public virtual UInt32 addShell(UInt32 /*SIMPLETYPE cstype*/ complexId) {
130// test csout
131 /*SIMPLETYPE*/
132 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addShell(swigCPtr, complexId /*SIMPLETYPE csin*/);
134 return ret;
135 }
136
137 public virtual UInt32 addComplex() {
138// test csout
139 /*SIMPLETYPE*/
140 UInt32 ret = GlobalsPINVOKE.OdIBrepBuilder_addComplex(swigCPtr);
142 return ret;
143 }
144
145 public virtual void setTag(UInt32 /*SIMPLETYPE cstype*/ id, UInt32 /*SIMPLETYPE*/ tag) {
146 GlobalsPINVOKE.OdIBrepBuilder_setTag(swigCPtr, id /*SIMPLETYPE csin*/, tag /*SIMPLETYPE*/);
148 }
149
150 public virtual void allowRemovalOfProblematicFaces() {
153 }
154
155 public virtual bool canAddGeometry() {
158 return ret;
159 }
160
161 public virtual void finishComplex(UInt32 /*SIMPLETYPE cstype*/ complexId) {
162 GlobalsPINVOKE.OdIBrepBuilder_finishComplex(swigCPtr, complexId /*SIMPLETYPE csin*/);
164 }
165
166 public virtual void finishShell(UInt32 /*SIMPLETYPE cstype*/ shellId) {
167 GlobalsPINVOKE.OdIBrepBuilder_finishShell(swigCPtr, shellId /*SIMPLETYPE csin*/);
169 }
170
171 public virtual void finishFace(UInt32 /*SIMPLETYPE cstype*/ faceId) {
172 GlobalsPINVOKE.OdIBrepBuilder_finishFace(swigCPtr, faceId /*SIMPLETYPE csin*/);
174 }
175
176 public virtual void finishLoop(UInt32 /*SIMPLETYPE cstype*/ loopId) {
177 GlobalsPINVOKE.OdIBrepBuilder_finishLoop(swigCPtr, loopId /*SIMPLETYPE csin*/);
179 }
180
181 public virtual OdRxObject getResult() {// OdRxObjectPtr
182 MemoryManager mMan = MemoryManager.GetMemoryManager();
183 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
184 IntPtr ptr = GlobalsPINVOKE.OdIBrepBuilder_getResult(swigCPtr);
185
186 OdRxObject ret = null;
187 if (null != mTrans)
188 {
189 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
190 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
191 }
192 else
193 {
194 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
195 }
196
198 return ret;
199}
200
201 public virtual bool isPermittedSurfaceType(OdGeSurface pSurf) {
204 return ret;
205 }
206
207 public virtual bool isResultAvailable() {
210 return ret;
211 }
212
213 public virtual bool isValidEdgeId(UInt32 /*SIMPLETYPE cstype*/ edgeId) {
214 bool ret = GlobalsPINVOKE.OdIBrepBuilder_isValidEdgeId(swigCPtr, edgeId /*SIMPLETYPE csin*/);
216 return ret;
217 }
218
219 public virtual bool isValidComplexId(UInt32 /*SIMPLETYPE cstype*/ complexId) {
220 bool ret = GlobalsPINVOKE.OdIBrepBuilder_isValidComplexId(swigCPtr, complexId /*SIMPLETYPE csin*/);
222 return ret;
223 }
224
225 public virtual bool isValidShellId(UInt32 /*SIMPLETYPE cstype*/ shellId) {
226 bool ret = GlobalsPINVOKE.OdIBrepBuilder_isValidShellId(swigCPtr, shellId /*SIMPLETYPE csin*/);
228 return ret;
229 }
230
231 public virtual bool isValidFaceId(UInt32 /*SIMPLETYPE cstype*/ faceId) {
232 bool ret = GlobalsPINVOKE.OdIBrepBuilder_isValidFaceId(swigCPtr, faceId /*SIMPLETYPE csin*/);
234 return ret;
235 }
236
237 public virtual bool isValidLoopId(UInt32 /*SIMPLETYPE cstype*/ loopId) {
238 bool ret = GlobalsPINVOKE.OdIBrepBuilder_isValidLoopId(swigCPtr, loopId /*SIMPLETYPE csin*/);
240 return ret;
241 }
242
243 public virtual bool removedSomeFaces() {
246 return ret;
247 }
248
249 public virtual void setAllowShortEdges() {
252 }
253
254 public virtual void setFlag(UInt32 /*SIMPLETYPE cstype*/ id, UInt32 /*SIMPLETYPE*/ flag, bool enable) {
255 GlobalsPINVOKE.OdIBrepBuilder_setFlag(swigCPtr, id /*SIMPLETYPE csin*/, flag /*SIMPLETYPE*/, enable);
257 }
258
259 public virtual void setFacesMaterial(UInt32 /*SIMPLETYPE cstype*/ faceId, OdDbStub materialId) {
260 GlobalsPINVOKE.OdIBrepBuilder_setFacesMaterial(swigCPtr, faceId /*SIMPLETYPE csin*/, OdDbStub.getCPtr(materialId));
262 }
263
264 public virtual OdResult setFaceMaterialMapping(UInt32 /*SIMPLETYPE cstype*/ faceId, OdGiMapper materialMapper) {
265 OdResult ret = (OdResult)GlobalsPINVOKE.OdIBrepBuilder_setFaceMaterialMapping(swigCPtr, faceId /*SIMPLETYPE csin*/, OdGiMapper.getCPtr(materialMapper));
267 return ret;
268 }
269
270 public virtual OdResult setEdgeColor(UInt32 /*SIMPLETYPE cstype*/ edgeId, OdCmEntityColor edgeColor) {
271 OdResult ret = (OdResult)GlobalsPINVOKE.OdIBrepBuilder_setEdgeColor(swigCPtr, edgeId /*SIMPLETYPE csin*/, OdCmEntityColor.getCPtr(edgeColor));
273 return ret;
274 }
275
276 public virtual OdResult setFaceColor(UInt32 /*SIMPLETYPE cstype*/ faceId, OdCmEntityColor faceColor) {
277 OdResult ret = (OdResult)GlobalsPINVOKE.OdIBrepBuilder_setFaceColor(swigCPtr, faceId /*SIMPLETYPE csin*/, OdCmEntityColor.getCPtr(faceColor));
279 return ret;
280 }
281
282 public virtual OdRxObject finish() {// OdRxObjectPtr
283 MemoryManager mMan = MemoryManager.GetMemoryManager();
284 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
285 IntPtr ptr = GlobalsPINVOKE.OdIBrepBuilder_finish(swigCPtr);
286
287 OdRxObject ret = null;
288 if (null != mTrans)
289 {
290 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
291 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
292 }
293 else
294 {
295 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
296 }
297
299 return ret;
300}
301
302 public virtual void enableValidator(bool bEnable) {
305 }
306
307 public virtual void enableValidator() {
310 }
311
313// csout array
315
317 return res;
318}
319
320}
321
322}
static global::System.Exception Retrieve()
static bool OdIBrepBuilder_isResultAvailable(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdIBrepBuilder_setFaceMaterialMapping(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static UInt32 OdIBrepBuilder_addEdge__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, UInt32 jarg3, UInt32 jarg4)
static bool OdIBrepBuilder_canAddGeometry(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdIBrepBuilder_addLoop(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdIBrepBuilder_isValidFaceId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static IntPtr OdIBrepBuilder_getResult(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdIBrepBuilder_setAllowShortEdges(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdIBrepBuilder_addFace__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, bool jarg3)
static void OdIBrepBuilder_enableValidator__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdIBrepBuilder_finishLoop(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdIBrepBuilder_isValidLoopId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static IntPtr OdIBrepBuilder_finish(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrepBuilder_isPermittedSurfaceType(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static UInt32 OdIBrepBuilder_addCoedge__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3, bool jarg4, HandleRef jarg5)
static UInt32 OdIBrepBuilder_addFace__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, bool jarg3, UInt32 jarg4)
static void OdIBrepBuilder_finishComplex(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static int OdIBrepBuilder_setFaceColor(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdIBrepBuilder_setTag(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3)
static UInt32 OdIBrepBuilder_addEdge__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static int OdIBrepBuilder_setEdgeColor(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdIBrepBuilder(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdIBrepBuilder_setFlag(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3, bool jarg4)
static bool OdIBrepBuilder_isValidShellId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdIBrepBuilder_allowRemovalOfProblematicFaces(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdIBrepBuilder_setFacesMaterial(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdIBrepBuilder_enableValidator__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdIBrepBuilder_isValidComplexId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdIBrepBuilder_finishFace(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static global::System.IntPtr OdIBrepBuilder_getValidationErrors(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrepBuilder_removedSomeFaces(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrepBuilder_isValidEdgeId(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static UInt32 OdIBrepBuilder_addCoedge__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3, bool jarg4)
static UInt32 OdIBrepBuilder_addComplex(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdIBrepBuilder_addCoedge__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3)
static int OdIBrepBuilder_getType(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdIBrepBuilder_finishShell(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static UInt32 OdIBrepBuilder_addVertex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdIBrepBuilder_addShell(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static HandleRef getCPtr(OdCmEntityColor obj)
static HandleRef getCPtr(OdDbStub obj)
Definition: OdDbStub.cs:26
static HandleRef getCPtr(OdGeCurve2d obj)
Definition: OdGeCurve2d.cs:25
static HandleRef getCPtr(OdGeCurve3d obj)
Definition: OdGeCurve3d.cs:25
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeSurface obj)
Definition: OdGeSurface.cs:25
static HandleRef getCPtr(OdGiMapper obj)
Definition: OdGiMapper.cs:26
static HandleRef getCPtr(OdIBrepBuilder obj)
virtual UInt32 addLoop(UInt32 faceId)
virtual UInt32 addCoedge(UInt32 loopId, UInt32 edgeId, bool isCoedgeReversed, OdGeCurve2d pParCur)
virtual BrepType getType()
virtual UInt32 addCoedge(UInt32 loopId, UInt32 edgeId, bool isCoedgeReversed)
virtual bool isPermittedSurfaceType(OdGeSurface pSurf)
virtual void setTag(UInt32 id, UInt32 tag)
virtual bool isValidEdgeId(UInt32 edgeId)
virtual bool isValidLoopId(UInt32 loopId)
virtual ValidationErrors getValidationErrors()
virtual OdResult setEdgeColor(UInt32 edgeId, OdCmEntityColor edgeColor)
virtual void enableValidator()
virtual UInt32 addEdge(OdGeCurve3d pCurveForEdge, UInt32 vertex1Id, UInt32 vertex2Id)
virtual UInt32 addCoedge(UInt32 loopId, UInt32 edgeId)
virtual bool isValidComplexId(UInt32 complexId)
virtual void allowRemovalOfProblematicFaces()
virtual void setFacesMaterial(UInt32 faceId, OdDbStub materialId)
virtual void Dispose(bool disposing)
virtual UInt32 addVertex(OdGePoint3d point)
virtual void finishComplex(UInt32 complexId)
virtual UInt32 addShell(UInt32 complexId)
virtual OdRxObject getResult()
virtual UInt32 addEdge(OdGeCurve3d pCurveForEdge)
virtual void finishLoop(UInt32 loopId)
virtual bool isResultAvailable()
virtual OdRxObject finish()
virtual OdResult setFaceMaterialMapping(UInt32 faceId, OdGiMapper materialMapper)
virtual bool removedSomeFaces()
virtual bool isValidFaceId(UInt32 faceId)
OdIBrepBuilder(IntPtr cPtr, bool cMemoryOwn)
virtual void setFlag(UInt32 id, UInt32 flag, bool enable)
virtual UInt32 addFace(OdGeSurface pSurf, bool isFaceReversed)
virtual void finishFace(UInt32 faceId)
virtual void finishShell(UInt32 shellId)
virtual bool isValidShellId(UInt32 shellId)
virtual OdResult setFaceColor(UInt32 faceId, OdCmEntityColor faceColor)
virtual void setAllowShortEdges()
virtual UInt32 addComplex()
virtual UInt32 addFace(OdGeSurface pSurf, bool isFaceReversed, UInt32 shellId)
virtual void enableValidator(bool bEnable)