Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeSphere.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 OdGeSphere : OdGeSurface {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGeSphere(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeSphere_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeSphere 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 OdGeSphere copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeSphere_copy(swigCPtr);
44 OdGeSphere ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeSphere(cPtr, false);
46 return ret;
47 }
48
54
60
61 public new OdGeSphere rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint) {
62 OdGeSphere ret = new OdGeSphere(GlobalsPINVOKE.OdGeSphere_rotateBy__SWIG_0(swigCPtr, angle, OdGeVector3d.getCPtr(vect), OdGePoint3d.getCPtr(basePoint)), false);
64 return ret;
65 }
66
67 public new OdGeSphere rotateBy(double angle, OdGeVector3d vect) {
70 return ret;
71 }
72
78
79 public new OdGeSphere scaleBy(double scaleFactor, OdGePoint3d basePoint) {
80 OdGeSphere ret = new OdGeSphere(GlobalsPINVOKE.OdGeSphere_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint3d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGeSphere scaleBy(double scaleFactor) {
86 OdGeSphere ret = new OdGeSphere(GlobalsPINVOKE.OdGeSphere_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
88 return ret;
89 }
90
91 public OdGeSphere() : this(GlobalsPINVOKE.new_OdGeSphere__SWIG_0(), true) {
93 }
94
98
99 public OdGeSphere(double radius, OdGePoint3d center, OdGeVector3d northAxis, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV) : this(GlobalsPINVOKE.new_OdGeSphere__SWIG_2(radius, OdGePoint3d.getCPtr(center), OdGeVector3d.getCPtr(northAxis), OdGeVector3d.getCPtr(refAxis), startAngleU, endAngleU, startAngleV, endAngleV), true) {
101 }
102
103 public OdGeSphere(OdGeSphere sphere) : this(GlobalsPINVOKE.new_OdGeSphere__SWIG_3(OdGeSphere.getCPtr(sphere)), true) {
105 }
106
107 public double radius() {
108 double ret = GlobalsPINVOKE.OdGeSphere_radius(swigCPtr);
110 return ret;
111 }
112
118
119 public void getAnglesInU(out double startAngleU, out double endAngleU) {
120 GlobalsPINVOKE.OdGeSphere_getAnglesInU(swigCPtr, out startAngleU, out endAngleU);
122 }
123
124 public void getAnglesInV(out double startAngleV, out double endAngleV) {
125 GlobalsPINVOKE.OdGeSphere_getAnglesInV(swigCPtr, out startAngleV, out endAngleV);
127 }
128
134
140
146
152
153 public bool isOuterNormal() {
154 bool ret = GlobalsPINVOKE.OdGeSphere_isOuterNormal(swigCPtr);
156 return ret;
157 }
158
164
165 public bool isClosed() {
166 bool ret = GlobalsPINVOKE.OdGeSphere_isClosed__SWIG_1(swigCPtr);
168 return ret;
169 }
170
176
177 public OdGeSphere setAnglesInU(double startAngleU, double endAngleU) {
178 OdGeSphere ret = new OdGeSphere(GlobalsPINVOKE.OdGeSphere_setAnglesInU(swigCPtr, startAngleU, endAngleU), false);
180 return ret;
181 }
182
183 public OdGeSphere setAnglesInV(double startAngleV, double endAngleV) {
184 OdGeSphere ret = new OdGeSphere(GlobalsPINVOKE.OdGeSphere_setAnglesInV(swigCPtr, startAngleV, endAngleV), false);
186 return ret;
187 }
188
194
195 public OdGeSphere set(double radius, OdGePoint3d center, OdGeVector3d northAxis, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV) {
196 OdGeSphere ret = new OdGeSphere(GlobalsPINVOKE.OdGeSphere_set__SWIG_1(swigCPtr, radius, OdGePoint3d.getCPtr(center), OdGeVector3d.getCPtr(northAxis), OdGeVector3d.getCPtr(refAxis), startAngleU, endAngleU, startAngleV, endAngleV), false);
198 return ret;
199 }
200
206
207 public bool intersectWith(OdGeLinearEnt3d lineEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGeTol tol) {
210 return ret;
211 }
212
213 public bool intersectWith(OdGeLinearEnt3d lineEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2) {
216 return ret;
217 }
218
219 public bool isReverseV() {
220 bool ret = GlobalsPINVOKE.OdGeSphere_isReverseV(swigCPtr);
222 return ret;
223 }
224
229
234 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
235
236}
237
238}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeSphere_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeSphere_setAnglesInV(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static double OdGeSphere_radius(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeSphere(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeSphere_isClosed__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeSphere_getAnglesInV(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static global::System.IntPtr OdGeSphere_setRadius(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeSphere_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGeSphere_getAnglesInU(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static void OdGeSphere_setReverseV(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdGeSphere_southPole(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeSphere_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 OdGeSphere_refAxis(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSphere_northAxis(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSphere_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeSphere_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 bool OdGeSphere_isClosed__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSphere_northPole(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSphere_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSphere_center(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSphere_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, double jarg6, double jarg7, double jarg8, double jarg9)
static bool OdGeSphere_isReverseV(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeSphere_isOuterNormal(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSphere_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeSphere_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeSphere_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeSphere_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 OdGeSphere_setAnglesInU(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static global::System.IntPtr OdGeSphere_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeSphere_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static HandleRef getCPtr(OdGeLinearEnt3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePlane obj)
Definition OdGePlane.cs:25
static HandleRef getCPtr(OdGePoint3d obj)
bool intersectWith(OdGeLinearEnt3d lineEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2)
OdGePoint3d center()
void getAnglesInV(out double startAngleV, out double endAngleV)
new OdGeSphere scaleBy(double scaleFactor, OdGePoint3d basePoint)
Definition OdGeSphere.cs:79
new OdGeSphere copy()
Definition OdGeSphere.cs:42
new OdGeSphere rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint)
Definition OdGeSphere.cs:61
bool isClosed(OdGeTol tol)
OdGeVector3d northAxis()
void setReverseV(bool isReverseV)
OdGeSphere(OdGeSphere sphere)
OdGeSphere Assign(OdGeSphere sphere)
new OdGeSphere rotateBy(double angle, OdGeVector3d vect)
Definition OdGeSphere.cs:67
OdGeSphere setAnglesInV(double startAngleV, double endAngleV)
Teigha.Core.OdGe.EntityId vb_type()
OdGeSphere setRadius(double radius)
new OdGeSphere translateBy(OdGeVector3d translateVec)
Definition OdGeSphere.cs:55
void getAnglesInU(out double startAngleU, out double endAngleU)
OdGeSphere(IntPtr cPtr, bool cMemoryOwn)
Definition OdGeSphere.cs:20
OdGePoint3d southPole()
override void Dispose(bool disposing)
Definition OdGeSphere.cs:29
OdGeSphere(double radius, OdGePoint3d center)
Definition OdGeSphere.cs:95
new OdGeSphere scaleBy(double scaleFactor)
Definition OdGeSphere.cs:85
static HandleRef getCPtr(OdGeSphere obj)
Definition OdGeSphere.cs:25
bool intersectWith(OdGeLinearEnt3d lineEnt, out int numInt, OdGePoint3d p1, OdGePoint3d p2, OdGeTol tol)
OdGeSphere setAnglesInU(double startAngleU, double endAngleU)
new OdGeSphere transformBy(OdGeMatrix3d xfm)
Definition OdGeSphere.cs:49
OdGeSphere(double radius, OdGePoint3d center, OdGeVector3d northAxis, OdGeVector3d refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV)
Definition OdGeSphere.cs:99
OdGePoint3d northPole()
new OdGeSphere mirror(OdGePlane plane)
Definition OdGeSphere.cs:73
OdGeVector3d refAxis()
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)