|
CFx SDK Documentation 2024 SP0
|
#include "Ge/GeTol.h"#include "Ge/Ge.h"#include "OdArrayPreDef.h"#include "Ge/GeSurfacePtrArray.h"#include "Ge/GePoint3dArray.h"#include "TD_PackPush.h"#include <OdaSTL.h>#include "TD_PackPop.h"Go to the source code of this file.
Classes | |
| struct | OdGeContext |
| class | OdGeLoopCtx |
| class | OdError_GeNotImplemted |
Macros | |
| #define | OD_GEGBL_H /*!DOM*/ |
| #define | STL_USING_ALGORITHM |
| #define | GE_NOT_IMPL(pGeEnt) |
| #define GE_NOT_IMPL | ( | pGeEnt | ) |
| GE_TOOLKIT_EXPORT OdGeError geCalculateNormal | ( | const OdGePoint3d * | points, |
| OdUInt32 | numPoints, | ||
| OdGeVector3d * | pNormal, | ||
| const OdGeTol & | tol = OdGeContext::gTol |
||
| ) |
Returns the normal to the plane defined by the specified points.
| points | [in] Array of 3D points. |
| numPoints | [in] Number of points. |
| pNormal | [out] Receives the normal to the calculated plane. |
| tol | [in] Geometric tolerance. |
@untitled table kOk kNonCoplanarGeometry kDegenerateGeometry kSingularPoint
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdGeError geCalculateNormal | ( | const OdGePoint3dArray & | points, |
| OdGeVector3d * | pNormal, | ||
| const OdGeTol & | tol = OdGeContext::gTol |
||
| ) |
Returns the normal to the plane defined by the specified points.
| points | [in] Array of 3D points. |
| pNormal | [out] Receives the normal to the calculated plane. |
| tol | [in] Geometric tolerance. |
@untitled table kOk kNonCoplanarGeometry kDegenerateGeometry kSingularPoint
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdGeError geCalculatePlane | ( | const OdGeCurve3d *const * | curves, |
| OdUInt32 | numCurves, | ||
| OdGePlane & | plane, | ||
| const OdGeTol & | tol = OdGeContext::gTol, |
||
| bool | validateCoplanar = true |
||
| ) |
Returns the plane defined by the specified points.
| curves | [in] Array of 3D curves. |
| numCurves | [in] Number of curves. |
| plane | [out] Receives the calculated plane. |
| tol | [in] Geometric tolerance. |
| validateCoplanar | [in] Check whether curves/points are coplanar (set false only if curves/points are complanar). |
@untitled table kOk kNonCoplanarGeometry kDegenerateGeometry kSingularPoint
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdGeError geCalculatePlane | ( | const OdGePoint3d * | points, |
| OdUInt32 | numPoints, | ||
| OdGePlane & | plane, | ||
| const OdGeTol & | tol = OdGeContext::gTol, |
||
| bool | validateCoplanar = true |
||
| ) |
Returns the plane defined by the specified points.
| points | [in] Array of 3D points. |
| numPoints | [in] Number of points. |
| plane | [out] Receives the calculated plane. |
| tol | [in] Geometric tolerance. |
| validateCoplanar | [in] Check whether curves/points are coplanar (set false only if curves/points are complanar). |
@untitled table kOk kNonCoplanarGeometry kDegenerateGeometry kSingularPoint
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdGeError geCalculatePlane | ( | const OdGePoint3dArray & | points, |
| OdGePlane & | plane, | ||
| const OdGeTol & | tol = OdGeContext::gTol, |
||
| bool | validateCoplanar = true |
||
| ) |
Returns the plane defined by the specified points.
| points | [in] Array of 3D points. |
| plane | [out] Receives the calculated plane. |
| tol | [in] Geometric tolerance. |
| validateCoplanar | [in] Check whether curves/points are coplanar (set false only if curves/points are coplanar). |
Possible return values are as follows:
@untitled table kOk kNonCoplanarGeometry kDegenerateGeometry kSingularPoint
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdResult geIsDir2dOnSurfCoincide3d | ( | const OdGeSurface * | pSurf, |
| const OdGeCurve3d * | pCurve, | ||
| const OdGeCurve2d * | pParamCurve, | ||
| bool & | isCoincide, | ||
| const OdGeTol & | tol = OdGeContext::gTol |
||
| ) |
Determine is direction of 3d curve is the same as direction of curve on surface that can be gotten via 2d parametric curve.
| pSurf | [in] Surface. |
| pCurve | [in] 3d curve that lie on pSurf. |
| pParamCurve | [in] 2d parametric curve which corresponds to pCurve on pSurf. |
| isCoincide | [out] Coincide flag. |
| tol | [in] Geometric tolerance. |
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT bool geNurb3dTo2d | ( | const OdGeNurbCurve3d & | nurb3d, |
| OdGePlane & | plane, | ||
| OdGeNurbCurve2d & | nurb2d, | ||
| const OdGeTol & | tol = OdGeContext::gTol |
||
| ) |
Converts a 3D NURBS curve to a 2D NURBS curve by projecting it onto the specified plane.
| nurb3d | [in] Any 3D NURBS curve. |
| plane | [in] Projection plane. |
| nurb2d | [out] Receives the 2D NURBS curve. |
| tol | [in] Geometric tolerance. |
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdGeError geSolidSignedVolume | ( | const OdGePoint3dArray & | points, |
| double & | volume, | ||
| const OdGePoint3d * | basePoint | ||
| ) |
Calculates signed volume of a triangulated solid.
| points | [in] Array of 3D points (in order of the triangles they form). |
| volume | [out] Receives the volume value. |
| basePoint | [in] Point to replace (0,0,0) for calculation purposes. |
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT bool geSurfaceProp | ( | const OdGeSurface & | pS, |
| OdGe::NurbSurfaceProperties & | propU, | ||
| OdGe::NurbSurfaceProperties & | propV, | ||
| const OdGeTol & | tol | ||
| ) |
Calculates a properties for a specified surface.
| pS | [in] Any surface. |
| propU | [out] Receives the properties for the U parameter. |
| propV | [out] Receives the properties for the V parameter. |
| tol | [in] Geometric tolerance. |
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdString geToString | ( | const OdGe::EntityId | val | ) |
Convert the specified value to an OdGe::EntityId string.
| val | [in] OdGe::EntityId value. |
| GE_TOOLKIT_EXPORT double getSignedArea | ( | const OdArray< OdGePoint2d, OdMemoryAllocator< OdGePoint2d > > & | arrPoints | ) |
Determine signed area defined by arrPoints array.
| arrPoints | [in] array of 2d points. |
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT OdGeError geValidSolid | ( | const OdGePoint3dArray & | points, |
| bool & | isValid, | ||
| const OdGeTol & | tol = OdGeContext::gTol |
||
| ) |
Checks topology of a triangulated solid.
| points | [in] Array of 3D points (in order of the triangles they form). |
| isValid | [out] Receives the validation result. |
| tol | [in] Geometric tolerance. |
Corresponding C++ library: TD_Ge
| GE_TOOLKIT_EXPORT bool isPolygonOutOfRect2d | ( | OdUInt32 | numPt, |
| const OdGePoint2d * | pPoints, | ||
| const OdGePoint2d & | minPt, | ||
| const OdGePoint2d & | maxPt | ||
| ) |
Determines whether the polygon is out of the specified rectangle.
| numPt | [in] Count of polygon points. |
| pPoints | [in] Pointer to an array of polygon points. |
| minPt | [in] Minimum extents point. |
| maxPt | [in] Maximum extents point. |