Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxGeomUtils.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxGeomUtils : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxGeomUtils(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxGeomUtils obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
57
63
69
75
81
87
93
99
105
106 public virtual bool SelectEdgeOnFace(CFxView pView, SWIGTYPE_p_CFxGsNode p3dSolidGsNode, OdGePoint3d ptPickPoint, ref IntPtr faceId, ref IntPtr edgeId) {
107 bool ret = PCADGlobalsPINVOKE.CFxGeomUtils_SelectEdgeOnFace(swigCPtr, CFxView.getCPtr(pView), SWIGTYPE_p_CFxGsNode.getCPtr(p3dSolidGsNode), OdGePoint3d.getCPtr(ptPickPoint), ref faceId, ref edgeId);
109 return ret;
110 }
111
117
123
129
130 public static OdGePoint3dArray GetImageBoundary(OdGeMatrix3d mPixelToModel, OdGePoint2d[] /*POINTARRAY2D_TYPEMAP_REV*/ uvBoundary) {
131IntPtr p_uvBoundary=Teigha.Core.Helpers.MarshalPoint2dArray(uvBoundary);
132 try {
133// csout array
135
137 return res;
138} finally {
139Marshal.FreeCoTaskMem(p_uvBoundary);
140 }
141 }
142
148
149 public static OdDbEntity GetPolySegment(OdDbEntity pPoly, OdGePoint3d pickPoint) {// OdDbEntityPtr
150 MemoryManager mMan = MemoryManager.GetMemoryManager();
151 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
153
154 OdDbEntity ret = null;
155 if (null != mTrans)
156 {
157 mTrans.AddObject((OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),ptr, true));
158 ret = (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),ptr, false);
159 }
160 else
161 {
162 ret = (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),ptr, true);
163 }
164
166 return ret;
167}
168
169 public static bool GetSegmentAtPoint(OdDbCurve pPLine, OdGePoint3d pointOnPLine, OdGeCircArc3d circ, OdGeLineSeg3d line, out bool isArc, out bool isLine) {
170 bool ret = PCADGlobalsPINVOKE.CFxGeomUtils_GetSegmentAtPoint(OdDbCurve.getCPtr(pPLine), OdGePoint3d.getCPtr(pointOnPLine), OdGeCircArc3d.getCPtr(circ), OdGeLineSeg3d.getCPtr(line), out isArc, out isLine);
172 return ret;
173 }
174
175 public static OdDbPolyline ConvertToStdPolyline(OdDbCurve pCurve) {// OdDbPolylinePtr
176 MemoryManager mMan = MemoryManager.GetMemoryManager();
177 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
179
180 OdDbPolyline ret = null;
181 if (null != mTrans)
182 {
183 mTrans.AddObject((OdDbPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbPolyline),ptr, true));
184 ret = (OdDbPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbPolyline),ptr, false);
185 }
186 else
187 {
188 ret = (OdDbPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbPolyline),ptr, true);
189 }
190
192 return ret;
193}
194
195}
196
197}
static OdGePoint3dArray GetImageBoundary(OdGeMatrix3d mPixelToModel, OdGePoint2d[] uvBoundary)
static OdGeMatrix3d GetTransform(OdDbFullSubentPath path)
virtual void SelectSubentsByPoint(CFxView pView, SWIGTYPE_p_CFxGsNode p3dSolidGsNode, OdGePoint3d ptPickPoint, OdGsMarkerArray aMarkers)
static bool GetSegmentAtPoint(OdDbCurve pPLine, OdGePoint3d pointOnPLine, OdGeCircArc3d circ, OdGeLineSeg3d line, out bool isArc, out bool isLine)
virtual bool SelectEdgeOnFace(CFxView pView, SWIGTYPE_p_CFxGsNode p3dSolidGsNode, OdGePoint3d ptPickPoint, ref IntPtr faceId, ref IntPtr edgeId)
virtual bool shootRayAgainstArrayObjects(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters)
virtual bool GetNormalOfPlanarFace(OdDb3dSolid pSolid, OdDbFullSubentPath face, OdGeVector3d normal)
static OdDbPolyline ConvertToStdPolyline(OdDbCurve pCurve)
virtual bool shootRayToGetMultipleSubEntities(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters)
CFxGeomUtils(IntPtr cPtr, bool cMemoryOwn)
static OdGeMatrix3d GetTransform(OdDbObjectIdArray idArray)
virtual bool shootRayAgainstArrayObjects(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGePoint3d pickPoint)
static HandleRef getCPtr(CFxGeomUtils obj)
static OdDbEntity GetPolySegment(OdDbEntity pPoly, OdGePoint3d pickPoint)
virtual bool shootRayAgainstObject(OdDbEntity pObj, double tol, OdGePoint3d base_, OdGeVector3d viewDir, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters)
static OdGeMatrix3d GetPixelToModelTransform(OdGePoint3d origin, OdGeVector3d u, OdGeVector3d v, double ySize)
virtual void Dispose(bool disposing)
virtual bool shootRayToGetMultipleSubEntities(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGePoint3dArraySt pickPoints)
virtual bool shootRayAgainstObject(OdDbEntity pObj, double tol, OdGePoint3d base_, OdGeVector3d viewDir, OdDbSubentIdArraySt subEntIds, OdGePoint3d pickPoint)
virtual bool GetClosestPointInFace(OdGePoint3d pt, OdDbEntity pObj, OdDbFullSubentPath face, OdGePoint3d closest, OdGeVector3d Utangent, OdGeVector3d Vtangent)
virtual bool GetEdgesFromFace(OdDb3dSolid p3dSolid, OdDbFullSubentPath face, OdDbFullSubentPathArray edgePaths)
static HandleRef getCPtr(CFxView obj)
Definition CFxView.cs:27
static bool CFxGeomUtils_GetNormalOfPlanarFace(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr CFxGeomUtils_ConvertToStdPolyline(HandleRef jarg1)
static void delete_CFxGeomUtils(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxGeomUtils_shootRayAgainstObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, double 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 bool CFxGeomUtils_SelectEdgeOnFace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, ref IntPtr jarg5, ref IntPtr jarg6)
static bool CFxGeomUtils_shootRayAgainstArrayObjects__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static global::System.IntPtr CFxGeomUtils_GetImageBoundary(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static global::System.IntPtr CFxGeomUtils_GetPixelToModelTransform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static IntPtr CFxGeomUtils_GetPolySegment(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxGeomUtils_GetClosestPointInFace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef 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 CFxGeomUtils_GetTransform__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxGeomUtils_shootRayAgainstArrayObjects__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static bool CFxGeomUtils_shootRayToGetMultipleSubEntities__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static bool CFxGeomUtils_shootRayToGetMultipleSubEntities__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static bool CFxGeomUtils_GetSegmentAtPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, out bool jarg5, out bool jarg6)
static global::System.IntPtr CFxGeomUtils_GetTransform__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxGeomUtils_GetEdgesFromFace(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void CFxGeomUtils_SelectSubentsByPoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static bool CFxGeomUtils_shootRayAgainstObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, double 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 HandleRef getCPtr(OdGeCircArc3d obj)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGeLineSeg3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePoint3dArraySt obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeVector3d obj)
static HandleRef getCPtr(OdGsMarkerArray obj)
static HandleRef getCPtr(OdDb3dSolid obj)
static HandleRef getCPtr(OdDbCurve obj)
Definition OdDbCurve.cs:26
static HandleRef getCPtr(OdDbEntity obj)
Definition OdDbEntity.cs:26
static HandleRef getCPtr(OdDbFullSubentPathArray obj)
static HandleRef getCPtr(OdDbFullSubentPath obj)
static HandleRef getCPtr(OdDbObjectIdArray obj)
static HandleRef getCPtr(OdDbSubentIdArraySt obj)