Extended .NET SDK Documentation 2024 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
60 public OdGeVector3d trNormal(int t) {
63 return ret;
64 }
65
66 public OdGeVector3d vxNormal(int v) {
67 OdGeVector3d ret = new OdGeVector3d(GlobalsPINVOKE.OdGeTrMesh_vxNormal(swigCPtr, v), true);
69 return ret;
70 }
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
90 public int fillNbLinks() {
91 int ret = GlobalsPINVOKE.OdGeTrMesh_fillNbLinks(swigCPtr);
93 return ret;
94 }
95
96 public void removeDegenerateTriangles(double tol) {
99 }
100
101 public void append(OdGeTrMesh mesh) {
104 }
105
106 public void clear() {
109 }
110
111 public void fillVxToTr() {
114 }
115
116 public void removeUnusedVertices() {
119 }
120
121 public OdGeTrMesh() : this(GlobalsPINVOKE.new_OdGeTrMesh(), true) {
123 }
124
125}
126
127}
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 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 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 int OdGeTrMesh_fillNbLinks(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeMesh obj)
Definition: OdGeMesh.cs:26
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
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)
Definition: OdGeTrMesh.cs:101
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