Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeTrMesh.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 OdGeTrMesh : OdGeMesh {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGeTrMesh(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeTrMesh_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeTrMesh obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public override double distanceTo(OdGePoint3d pt, OdGePoint3d ptClosest, bool bPrecise) {
43 double ret = GlobalsPINVOKE.OdGeTrMesh_distanceTo(swigCPtr, OdGePoint3d.getCPtr(pt), OdGePoint3d.getCPtr(ptClosest), bPrecise);
45 return ret;
46 }
47
48 public override int checkMeshMismatch(OdGeMesh mesh, OdGePoint3dArray aPtMismatch, double tol) {
49 int ret = GlobalsPINVOKE.OdGeTrMesh_checkMeshMismatch(swigCPtr, OdGeMesh.getCPtr(mesh), OdGePoint3dArray.getCPtr(aPtMismatch), tol);
51 return ret;
52 }
53
54 public OdGeVector3d trNormal(int t, ref double area) {
55 OdGeVector3d ret = new OdGeVector3d(GlobalsPINVOKE.OdGeTrMesh_trNormal__SWIG_0(swigCPtr, t, ref area), true);
57 return ret;
58 }
59
65
71
72 public bool walkNextTr(out int iTr, out int w, bool dir) {
73 bool ret = GlobalsPINVOKE.OdGeTrMesh_walkNextTr(swigCPtr, out iTr, out w, dir);
75 return ret;
76 }
77
78 public bool walkAroundVertex(out int iTr, out int w, int3 aux) {
79 bool ret = GlobalsPINVOKE.OdGeTrMesh_walkAroundVertex(swigCPtr, out iTr, out w, int3.getCPtr(aux));
81 return ret;
82 }
83
84 public int getCoEdge(int t, int e) {
85 int ret = GlobalsPINVOKE.OdGeTrMesh_getCoEdge(swigCPtr, t, e);
87 return ret;
88 }
89
95
100
105
110
115
120
122 set {
125 }
126 get
127 {
128 // csvarout array
130
132 return res;
133 }
134
135 }
136
138 set {
141 }
142 get {
143 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeTrMesh_m_vxToTr_get(swigCPtr);
144 intPairArray2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new intPairArray2d(cPtr, false);
146 return ret;
147 }
148 }
149
150 public OdGeTrMesh() : this(GlobalsPINVOKE.new_OdGeTrMesh(), true) {
152 }
153
154}
155
156}
static global::System.Exception Retrieve()
static void OdGeTrMesh_removeUnusedVertices(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTrMesh_trNormal__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeTrMesh_m_aTr_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeTrMesh_getCoEdge(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static bool OdGeTrMesh_walkNextTr(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3, bool jarg4)
static void OdGeTrMesh_m_aTr_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeTrMesh_distanceTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static int OdGeTrMesh_checkMeshMismatch(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static void OdGeTrMesh_fillVxToTr(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeTrMesh_removeDegenerateTriangles(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGeTrMesh_append(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeTrMesh_vxNormal(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdGeTrMesh_walkAroundVertex(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void delete_OdGeTrMesh(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeTrMesh_clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTrMesh_trNormal__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, ref double jarg3)
static global::System.IntPtr OdGeTrMesh_m_vxToTr_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeTrMesh_fillNbLinks(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeTrMesh_m_vxToTr_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGeMesh obj)
Definition OdGeMesh.cs:26
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeTrArray obj)
intPairArray2d m_vxToTr
OdGeVector3d trNormal(int t, ref double area)
Definition OdGeTrMesh.cs:54
void removeDegenerateTriangles(double tol)
Definition OdGeTrMesh.cs:96
int getCoEdge(int t, int e)
Definition OdGeTrMesh.cs:84
bool walkAroundVertex(out int iTr, out int w, int3 aux)
Definition OdGeTrMesh.cs:78
bool walkNextTr(out int iTr, out int w, bool dir)
Definition OdGeTrMesh.cs:72
override int checkMeshMismatch(OdGeMesh mesh, OdGePoint3dArray aPtMismatch, double tol)
Definition OdGeTrMesh.cs:48
static HandleRef getCPtr(OdGeTrMesh obj)
Definition OdGeTrMesh.cs:25
OdGeVector3d vxNormal(int v)
Definition OdGeTrMesh.cs:66
override void Dispose(bool disposing)
Definition OdGeTrMesh.cs:29
OdGeVector3d trNormal(int t)
Definition OdGeTrMesh.cs:60
void append(OdGeTrMesh mesh)
override double distanceTo(OdGePoint3d pt, OdGePoint3d ptClosest, bool bPrecise)
Definition OdGeTrMesh.cs:42
OdGeTrMesh(IntPtr cPtr, bool cMemoryOwn)
Definition OdGeTrMesh.cs:20
static HandleRef getCPtr(int3 obj)
Definition int3.cs:26
static HandleRef getCPtr(intPairArray2d obj)