Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeTorus.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 OdGeTorus : OdGeSurface {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGeTorus(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeTorus_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeTorus 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 new OdGeTorus copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeTorus_copy(swigCPtr);
44 OdGeTorus ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeTorus(cPtr, false);
46 return ret;
47 }
48
54
55 public new OdGeTorus translateBy(OdGeVector3d translateVec) {
56 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_translateBy(swigCPtr, OdGeVector3d.getCPtr(translateVec)), false);
58 return ret;
59 }
60
61 public new OdGeTorus rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint) {
62 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_rotateBy__SWIG_0(swigCPtr, angle, OdGeVector3d.getCPtr(vect), OdGePoint3d.getCPtr(basePoint)), false);
64 return ret;
65 }
66
67 public new OdGeTorus rotateBy(double angle, OdGeVector3d vect) {
68 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_rotateBy__SWIG_1(swigCPtr, angle, OdGeVector3d.getCPtr(vect)), false);
70 return ret;
71 }
72
78
79 public new OdGeTorus scaleBy(double scaleFactor, OdGePoint3d basePoint) {
80 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint3d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGeTorus scaleBy(double scaleFactor) {
86 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
88 return ret;
89 }
90
91 public OdGeTorus() : this(GlobalsPINVOKE.new_OdGeTorus__SWIG_0(), true) {
93 }
94
98
99 public OdGeTorus(double majorRadius, double minorRadius, OdGePoint3d center, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV) : this(GlobalsPINVOKE.new_OdGeTorus__SWIG_2(majorRadius, minorRadius, OdGePoint3d.getCPtr(center), OdGeVector3d.getCPtr(axisOfSymmetry), OdGeVector3d.getCPtr(refAxis), startAngleU, endAngleU, startAngleV, endAngleV), true) {
101 }
102
103 public OdGeTorus(OdGeTorus source) : this(GlobalsPINVOKE.new_OdGeTorus__SWIG_3(OdGeTorus.getCPtr(source)), true) {
105 }
106
107 public double majorRadius() {
108 double ret = GlobalsPINVOKE.OdGeTorus_majorRadius(swigCPtr);
110 return ret;
111 }
112
113 public double minorRadius() {
114 double ret = GlobalsPINVOKE.OdGeTorus_minorRadius(swigCPtr);
116 return ret;
117 }
118
119 public void getAnglesInU(out double startAngleU, out double endAngleU) {
120 GlobalsPINVOKE.OdGeTorus_getAnglesInU(swigCPtr, out startAngleU, out endAngleU);
122 }
123
124 public void getAnglesInV(out double startAngleV, out double endAngleV) {
125 GlobalsPINVOKE.OdGeTorus_getAnglesInV(swigCPtr, out startAngleV, out endAngleV);
127 }
128
134
140
146
147 public bool isOuterNormal() {
148 bool ret = GlobalsPINVOKE.OdGeTorus_isOuterNormal(swigCPtr);
150 return ret;
151 }
152
153 public OdGeTorus setMajorRadius(double radius) {
154 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setMajorRadius(swigCPtr, radius), false);
156 return ret;
157 }
158
159 public OdGeTorus setMinorRadius(double radius) {
160 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setMinorRadius(swigCPtr, radius), false);
162 return ret;
163 }
164
165 public OdGeTorus setAnglesInU(double startAngleU, double endAngleU) {
166 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setAnglesInU(swigCPtr, startAngleU, endAngleU), false);
168 return ret;
169 }
170
171 public OdGeTorus setAnglesInV(double startAngleV, double endAngleV) {
172 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setAnglesInV(swigCPtr, startAngleV, endAngleV), false);
174 return ret;
175 }
176
182
183 public OdGeTorus set(double majorRadius, double minorRadius, OdGePoint3d center, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV) {
186 return ret;
187 }
188
194
200
206
207 public bool isLemon() {
208 bool ret = GlobalsPINVOKE.OdGeTorus_isLemon(swigCPtr);
210 return ret;
211 }
212
213 public bool isApple() {
214 bool ret = GlobalsPINVOKE.OdGeTorus_isApple(swigCPtr);
216 return ret;
217 }
218
219 public bool isVortex() {
220 bool ret = GlobalsPINVOKE.OdGeTorus_isVortex(swigCPtr);
222 return ret;
223 }
224
225 public bool isDoughnut() {
226 bool ret = GlobalsPINVOKE.OdGeTorus_isDoughnut(swigCPtr);
228 return ret;
229 }
230
231 public bool isDegenerate() {
232 bool ret = GlobalsPINVOKE.OdGeTorus_isDegenerate(swigCPtr);
234 return ret;
235 }
236
237 public bool isHollow() {
238 bool ret = GlobalsPINVOKE.OdGeTorus_isHollow(swigCPtr);
240 return ret;
241 }
242
243 public bool isReverseV() {
244 bool ret = GlobalsPINVOKE.OdGeTorus_isReverseV(swigCPtr);
246 return ret;
247 }
248
253
258 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
259
260}
261
262}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeTorus_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeTorus_isReverseV(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeTorus_isLemon(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeTorus_getAnglesInU(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static global::System.IntPtr OdGeTorus_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeTorus_isApple(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeTorus_getAnglesInV(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static global::System.IntPtr OdGeTorus_refAxis(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeTorus_minorRadius(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTorus_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static global::System.IntPtr OdGeTorus_setMajorRadius(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeTorus_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeTorus_axisOfSymmetry(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeTorus_isOuterNormal(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTorus_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr OdGeTorus_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeTorus_intersectWith__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static bool OdGeTorus_isDoughnut(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeTorus(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTorus_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeTorus_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdGeTorus_majorRadius(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTorus_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeTorus_center(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTorus_setMinorRadius(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeTorus_isHollow(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTorus_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, double jarg7, double jarg8, double jarg9, double jarg10)
static void OdGeTorus_setReverseV(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdGeTorus_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeTorus_isVortex(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeTorus_isDegenerate(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeTorus_setAnglesInV(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static bool OdGeTorus_intersectWith__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static global::System.IntPtr OdGeTorus_setAnglesInU(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static HandleRef getCPtr(OdGeLinearEnt3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePlane obj)
Definition OdGePlane.cs:25
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
override void Dispose(bool disposing)
Definition OdGeTorus.cs:29
OdGeVector3d axisOfSymmetry()
Definition OdGeTorus.cs:135
new OdGeTorus rotateBy(double angle, OdGeVector3d vect)
Definition OdGeTorus.cs:67
void getAnglesInV(out double startAngleV, out double endAngleV)
Definition OdGeTorus.cs:124
OdGeTorus setMajorRadius(double radius)
Definition OdGeTorus.cs:153
OdGeTorus(OdGeTorus source)
Definition OdGeTorus.cs:103
new OdGeTorus mirror(OdGePlane plane)
Definition OdGeTorus.cs:73
new OdGeTorus rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint)
Definition OdGeTorus.cs:61
OdGeVector3d refAxis()
Definition OdGeTorus.cs:141
OdGePoint3d center()
Definition OdGeTorus.cs:129
bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGePoint3d p3, OdGePoint3d p4)
Definition OdGeTorus.cs:201
bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGePoint3d p3, OdGePoint3d p4, OdGeTol tol)
Definition OdGeTorus.cs:195
static HandleRef getCPtr(OdGeTorus obj)
Definition OdGeTorus.cs:25
void getAnglesInU(out double startAngleU, out double endAngleU)
Definition OdGeTorus.cs:119
new OdGeTorus transformBy(OdGeMatrix3d xfm)
Definition OdGeTorus.cs:49
OdGeTorus setAnglesInU(double startAngleU, double endAngleU)
Definition OdGeTorus.cs:165
new OdGeTorus scaleBy(double scaleFactor)
Definition OdGeTorus.cs:85
new OdGeTorus translateBy(OdGeVector3d translateVec)
Definition OdGeTorus.cs:55
void setReverseV(bool isReverseV)
Definition OdGeTorus.cs:249
new OdGeTorus copy()
Definition OdGeTorus.cs:42
Teigha.Core.OdGe.EntityId vb_type()
Definition OdGeTorus.cs:258
OdGeTorus setMinorRadius(double radius)
Definition OdGeTorus.cs:159
OdGeTorus(double majorRadius, double minorRadius, OdGePoint3d center, OdGeVector3d axisOfSymmetry)
Definition OdGeTorus.cs:95
OdGeTorus Assign(OdGeTorus torus)
Definition OdGeTorus.cs:189
OdGeTorus setAnglesInV(double startAngleV, double endAngleV)
Definition OdGeTorus.cs:171
OdGeTorus(double majorRadius, double minorRadius, OdGePoint3d center, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV)
Definition OdGeTorus.cs:99
OdGeTorus(IntPtr cPtr, bool cMemoryOwn)
Definition OdGeTorus.cs:20
new OdGeTorus scaleBy(double scaleFactor, OdGePoint3d basePoint)
Definition OdGeTorus.cs:79
static HandleRef getCPtr(OdGeVector3d obj)