Extended .NET SDK Documentation 2024 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 OdGeTorus() : this(GlobalsPINVOKE.new_OdGeTorus__SWIG_0(), true) {
44 }
45
48 }
49
50 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) {
52 }
53
54 public OdGeTorus(OdGeTorus source) : this(GlobalsPINVOKE.new_OdGeTorus__SWIG_3(OdGeTorus.getCPtr(source)), true) {
56 }
57
58 public double majorRadius() {
59 double ret = GlobalsPINVOKE.OdGeTorus_majorRadius(swigCPtr);
61 return ret;
62 }
63
64 public double minorRadius() {
65 double ret = GlobalsPINVOKE.OdGeTorus_minorRadius(swigCPtr);
67 return ret;
68 }
69
70 public void getAnglesInU(out double startAngleU, out double endAngleU) {
71 GlobalsPINVOKE.OdGeTorus_getAnglesInU(swigCPtr, out startAngleU, out endAngleU);
73 }
74
75 public void getAnglesInV(out double startAngleV, out double endAngleV) {
76 GlobalsPINVOKE.OdGeTorus_getAnglesInV(swigCPtr, out startAngleV, out endAngleV);
78 }
79
81 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGeTorus_center(swigCPtr), true);
83 return ret;
84 }
85
89 return ret;
90 }
91
95 return ret;
96 }
97
98 public bool isOuterNormal() {
99 bool ret = GlobalsPINVOKE.OdGeTorus_isOuterNormal(swigCPtr);
101 return ret;
102 }
103
104 public OdGeTorus setMajorRadius(double radius) {
105 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setMajorRadius(swigCPtr, radius), false);
107 return ret;
108 }
109
110 public OdGeTorus setMinorRadius(double radius) {
111 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setMinorRadius(swigCPtr, radius), false);
113 return ret;
114 }
115
116 public OdGeTorus setAnglesInU(double startAngleU, double endAngleU) {
117 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setAnglesInU(swigCPtr, startAngleU, endAngleU), false);
119 return ret;
120 }
121
122 public OdGeTorus setAnglesInV(double startAngleV, double endAngleV) {
123 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_setAnglesInV(swigCPtr, startAngleV, endAngleV), false);
125 return ret;
126 }
127
131 return ret;
132 }
133
134 public OdGeTorus set(double majorRadius, double minorRadius, OdGePoint3d center, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV) {
137 return ret;
138 }
139
140 public OdGeTorus Assign(OdGeTorus torus) {
141 OdGeTorus ret = new OdGeTorus(GlobalsPINVOKE.OdGeTorus_Assign(swigCPtr, OdGeTorus.getCPtr(torus)), false);
143 return ret;
144 }
145
146 public bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGePoint3d p3, OdGePoint3d p4, OdGeTol tol) {
149 return ret;
150 }
151
152 public bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGePoint3d p3, OdGePoint3d p4) {
155 return ret;
156 }
157
158 public bool isLemon() {
159 bool ret = GlobalsPINVOKE.OdGeTorus_isLemon(swigCPtr);
161 return ret;
162 }
163
164 public bool isApple() {
165 bool ret = GlobalsPINVOKE.OdGeTorus_isApple(swigCPtr);
167 return ret;
168 }
169
170 public bool isVortex() {
171 bool ret = GlobalsPINVOKE.OdGeTorus_isVortex(swigCPtr);
173 return ret;
174 }
175
176 public bool isDoughnut() {
177 bool ret = GlobalsPINVOKE.OdGeTorus_isDoughnut(swigCPtr);
179 return ret;
180 }
181
182 public bool isDegenerate() {
183 bool ret = GlobalsPINVOKE.OdGeTorus_isDegenerate(swigCPtr);
185 return ret;
186 }
187
188 public bool isHollow() {
189 bool ret = GlobalsPINVOKE.OdGeTorus_isHollow(swigCPtr);
191 return ret;
192 }
193
194 public bool isReverseV() {
195 bool ret = GlobalsPINVOKE.OdGeTorus_isReverseV(swigCPtr);
197 return ret;
198 }
199
200 public void setReverseV(bool isReverseV) {
203 }
204
209 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
210
211}
212
213}
static global::System.Exception Retrieve()
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 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_axisOfSymmetry(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeTorus_isOuterNormal(global::System.Runtime.InteropServices.HandleRef jarg1)
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 double OdGeTorus_majorRadius(global::System.Runtime.InteropServices.HandleRef jarg1)
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 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)
OdGe.EntityId type()
Definition: OdGeEntity3d.cs:57
static HandleRef getCPtr(OdGeLinearEnt3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
override void Dispose(bool disposing)
Definition: OdGeTorus.cs:29
OdGeVector3d axisOfSymmetry()
Definition: OdGeTorus.cs:86
void getAnglesInV(out double startAngleV, out double endAngleV)
Definition: OdGeTorus.cs:75
OdGeTorus setMajorRadius(double radius)
Definition: OdGeTorus.cs:104
OdGeTorus(OdGeTorus source)
Definition: OdGeTorus.cs:54
OdGeVector3d refAxis()
Definition: OdGeTorus.cs:92
OdGePoint3d center()
Definition: OdGeTorus.cs:80
bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGePoint3d p3, OdGePoint3d p4)
Definition: OdGeTorus.cs:152
bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGePoint3d p3, OdGePoint3d p4, OdGeTol tol)
Definition: OdGeTorus.cs:146
static HandleRef getCPtr(OdGeTorus obj)
Definition: OdGeTorus.cs:25
void getAnglesInU(out double startAngleU, out double endAngleU)
Definition: OdGeTorus.cs:70
double majorRadius()
Definition: OdGeTorus.cs:58
OdGeTorus setAnglesInU(double startAngleU, double endAngleU)
Definition: OdGeTorus.cs:116
void setReverseV(bool isReverseV)
Definition: OdGeTorus.cs:200
Teigha.Core.OdGe.EntityId vb_type()
Definition: OdGeTorus.cs:209
OdGeTorus setMinorRadius(double radius)
Definition: OdGeTorus.cs:110
OdGeTorus(double majorRadius, double minorRadius, OdGePoint3d center, OdGeVector3d axisOfSymmetry)
Definition: OdGeTorus.cs:46
double minorRadius()
Definition: OdGeTorus.cs:64
OdGeTorus Assign(OdGeTorus torus)
Definition: OdGeTorus.cs:140
OdGeTorus setAnglesInV(double startAngleV, double endAngleV)
Definition: OdGeTorus.cs:122
OdGeTorus(double majorRadius, double minorRadius, OdGePoint3d center, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV)
Definition: OdGeTorus.cs:50
OdGeTorus(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGeTorus.cs:20
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26