Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeCone.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 OdGeCone : OdGeSurface {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGeCone(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeCone_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeCone 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 OdGeCone copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeCone_copy(swigCPtr);
44 OdGeCone ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeCone(cPtr, false);
46 return ret;
47 }
48
54
55 public new OdGeCone translateBy(OdGeVector3d translateVec) {
56 OdGeCone ret = new OdGeCone(GlobalsPINVOKE.OdGeCone_translateBy(swigCPtr, OdGeVector3d.getCPtr(translateVec)), false);
58 return ret;
59 }
60
61 public new OdGeCone rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint) {
62 OdGeCone ret = new OdGeCone(GlobalsPINVOKE.OdGeCone_rotateBy__SWIG_0(swigCPtr, angle, OdGeVector3d.getCPtr(vect), OdGePoint3d.getCPtr(basePoint)), false);
64 return ret;
65 }
66
67 public new OdGeCone rotateBy(double angle, OdGeVector3d vect) {
68 OdGeCone ret = new OdGeCone(GlobalsPINVOKE.OdGeCone_rotateBy__SWIG_1(swigCPtr, angle, OdGeVector3d.getCPtr(vect)), false);
70 return ret;
71 }
72
78
79 public new OdGeCone scaleBy(double scaleFactor, OdGePoint3d basePoint) {
80 OdGeCone ret = new OdGeCone(GlobalsPINVOKE.OdGeCone_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint3d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGeCone scaleBy(double scaleFactor) {
86 OdGeCone ret = new OdGeCone(GlobalsPINVOKE.OdGeCone_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
88 return ret;
89 }
90
91 public OdGeCone() : this(GlobalsPINVOKE.new_OdGeCone__SWIG_0(), true) {
93 }
94
95 public OdGeCone(double cosineAngle, double sineAngle, OdGePoint3d baseOrigin, double baseRadius, OdGeVector3d axisOfSymmetry) : this(GlobalsPINVOKE.new_OdGeCone__SWIG_1(cosineAngle, sineAngle, OdGePoint3d.getCPtr(baseOrigin), baseRadius, OdGeVector3d.getCPtr(axisOfSymmetry)), true) {
97 }
98
99 public OdGeCone(double cosineAngle, double sineAngle, OdGePoint3d baseOrigin, double baseRadius, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, OdGeInterval height, double startAng, double endAng) : this(GlobalsPINVOKE.new_OdGeCone__SWIG_2(cosineAngle, sineAngle, OdGePoint3d.getCPtr(baseOrigin), baseRadius, OdGeVector3d.getCPtr(axisOfSymmetry), OdGeVector3d.getCPtr(refAxis), OdGeInterval.getCPtr(height), startAng, endAng), true) {
101 }
102
103 public OdGeCone(OdGeCone cone) : this(GlobalsPINVOKE.new_OdGeCone__SWIG_3(OdGeCone.getCPtr(cone)), true) {
105 }
106
107 public double baseRadius() {
108 double ret = GlobalsPINVOKE.OdGeCone_baseRadius(swigCPtr);
110 return ret;
111 }
112
118
119 public void getAngles(out double startAng, out double endAng) {
120 GlobalsPINVOKE.OdGeCone_getAngles(swigCPtr, out startAng, out endAng);
122 }
123
124 public double halfAngle() {
125 double ret = GlobalsPINVOKE.OdGeCone_halfAngle(swigCPtr);
127 return ret;
128 }
129
130 public void getHalfAngle(out double cosineAngle, out double sineAngle) {
131 GlobalsPINVOKE.OdGeCone_getHalfAngle(swigCPtr, out cosineAngle, out sineAngle);
133 }
134
135 public void getHalfAngleSigned(out double cosineAngle, out double sineAngle) {
136 GlobalsPINVOKE.OdGeCone_getHalfAngleSigned(swigCPtr, out cosineAngle, out sineAngle);
138 }
139
144
145 public double heightAt(double u) {
146 double ret = GlobalsPINVOKE.OdGeCone_heightAt(swigCPtr, u);
148 return ret;
149 }
150
156
162
168
169 public bool isClosed(OdGeTol tol) {
170 bool ret = GlobalsPINVOKE.OdGeCone_isClosed__SWIG_0(swigCPtr, OdGeTol.getCPtr(tol));
172 return ret;
173 }
174
175 public bool isClosed() {
176 bool ret = GlobalsPINVOKE.OdGeCone_isClosed__SWIG_1(swigCPtr);
178 return ret;
179 }
180
181 public bool isOuterNormal() {
182 bool ret = GlobalsPINVOKE.OdGeCone_isOuterNormal(swigCPtr);
184 return ret;
185 }
186
192
193 public OdGeCone setAngles(double startAng, double endAng) {
194 OdGeCone ret = new OdGeCone(GlobalsPINVOKE.OdGeCone_setAngles(swigCPtr, startAng, endAng), false);
196 return ret;
197 }
198
204
205 public double getPoleParam() {
206 double ret = GlobalsPINVOKE.OdGeCone_getPoleParam(swigCPtr);
208 return ret;
209 }
210
211 public OdGeCone set(double cosineAngle, double sineAngle, OdGePoint3d baseCenter, double baseRadius, OdGeVector3d axisOfSymmetry) {
214 return ret;
215 }
216
217 public OdGeCone set(double cosineAngle, double sineAngle, OdGePoint3d baseCenter, double baseRadius, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, OdGeInterval height, double startAng, double endAng) {
220 return ret;
221 }
222
228
229 public bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGeTol tol) {
232 return ret;
233 }
234
235 public bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2) {
238 return ret;
239 }
240
241 public double getUParamScale() {
242 double ret = GlobalsPINVOKE.OdGeCone_getUParamScale(swigCPtr);
244 return ret;
245 }
246
251
256
261 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
262
263}
264
265}
static global::System.Exception Retrieve()
static double OdGeCone_getUParamScale(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeCone_heightAt(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeCone_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeCone_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, double jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, double jarg9, double jarg10)
static global::System.IntPtr OdGeCone_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeCone_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)
static void OdGeCone_setUParamScale__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeCone_setUParamScale__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeCone_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)
static global::System.IntPtr OdGeCone_setHeight(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeCone_setBaseRadius(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeCone_isClosed__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeCone_getHalfAngle(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static void OdGeCone_getHalfAngleSigned(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static double OdGeCone_getPoleParam(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeCone_isClosed__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCone_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeCone_apex(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCone_baseCenter(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCone_setAngles(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static global::System.IntPtr OdGeCone_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeCone_isOuterNormal(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCone_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeCone_axisOfSymmetry(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCone_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeCone_refAxis(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCone_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeCone_baseRadius(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeCone(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCone_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 OdGeCone_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeCone_getAngles(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static double OdGeCone_halfAngle(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeCone_getHeight(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeCone_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, double jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
double getUParamScale()
Definition OdGeCone.cs:241
void getHalfAngleSigned(out double cosineAngle, out double sineAngle)
Definition OdGeCone.cs:135
OdGeCone(double cosineAngle, double sineAngle, OdGePoint3d baseOrigin, double baseRadius, OdGeVector3d axisOfSymmetry, OdGeVector3d refAxis, OdGeInterval height, double startAng, double endAng)
Definition OdGeCone.cs:99
double getPoleParam()
Definition OdGeCone.cs:205
static HandleRef getCPtr(OdGeCone obj)
Definition OdGeCone.cs:25
OdGeCone Assign(OdGeCone cone)
Definition OdGeCone.cs:223
override void Dispose(bool disposing)
Definition OdGeCone.cs:29
double heightAt(double u)
Definition OdGeCone.cs:145
OdGeCone(IntPtr cPtr, bool cMemoryOwn)
Definition OdGeCone.cs:20
void setUParamScale(double uScale)
Definition OdGeCone.cs:247
OdGeCone setAngles(double startAng, double endAng)
Definition OdGeCone.cs:193
new OdGeCone transformBy(OdGeMatrix3d xfm)
Definition OdGeCone.cs:49
OdGeCone(double cosineAngle, double sineAngle, OdGePoint3d baseOrigin, double baseRadius, OdGeVector3d axisOfSymmetry)
Definition OdGeCone.cs:95
new OdGeCone scaleBy(double scaleFactor)
Definition OdGeCone.cs:85
void getHeight(OdGeInterval height)
Definition OdGeCone.cs:140
new OdGeCone translateBy(OdGeVector3d translateVec)
Definition OdGeCone.cs:55
OdGePoint3d apex()
Definition OdGeCone.cs:163
bool isClosed(OdGeTol tol)
Definition OdGeCone.cs:169
bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGeTol tol)
Definition OdGeCone.cs:229
new OdGeCone scaleBy(double scaleFactor, OdGePoint3d basePoint)
Definition OdGeCone.cs:79
OdGeVector3d axisOfSymmetry()
Definition OdGeCone.cs:151
new OdGeCone rotateBy(double angle, OdGeVector3d vect)
Definition OdGeCone.cs:67
void getAngles(out double startAng, out double endAng)
Definition OdGeCone.cs:119
new OdGeCone rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint)
Definition OdGeCone.cs:61
new OdGeCone copy()
Definition OdGeCone.cs:42
new OdGeCone mirror(OdGePlane plane)
Definition OdGeCone.cs:73
void getHalfAngle(out double cosineAngle, out double sineAngle)
Definition OdGeCone.cs:130
OdGeCone setHeight(OdGeInterval height)
Definition OdGeCone.cs:199
OdGeCone setBaseRadius(double baseRadius)
Definition OdGeCone.cs:187
Teigha.Core.OdGe.EntityId vb_type()
Definition OdGeCone.cs:261
OdGeCone(OdGeCone cone)
Definition OdGeCone.cs:103
OdGeVector3d refAxis()
Definition OdGeCone.cs:157
OdGePoint3d baseCenter()
Definition OdGeCone.cs:113
bool intersectWith(OdGeLinearEnt3d linEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2)
Definition OdGeCone.cs:235
static HandleRef getCPtr(OdGeInterval obj)
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
static HandleRef getCPtr(OdGeVector3d obj)