CFx SDK Documentation 2024 SP0
|
#include <GeCurveSurfInt.h>
Additional Inherited Members | |
Protected Member Functions inherited from OdGeEntity3d | |
OdGeEntity3d () | |
OdGeEntity3d (const OdGeEntity3d &) | |
void | connectTo (OdGeEntity3dImpl *) |
This class represents intersections of 3d curves and surfaces.
If one of the objects is deleted, the intersection must be recalculated. If one of the objects is NULL, kXXUnknown status is set and the default value is returned.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 53 of file GeCurveSurfInt.h.
OdGeCurveSurfInt::OdGeCurveSurfInt | ( | ) |
Default constructor for the OdGeCurveSurfInt class. Constructs an invalid curve-surface intersector with no intersection curve and surface and with default tolerance.
OdGeCurveSurfInt::OdGeCurveSurfInt | ( | const OdGeCurve3d & | curve, |
const OdGeSurface & | surf, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
Constructor. Creates an OdGeCurveSurfInt object with the specified curve, surface and geometric tolerance.
curve | [in] Curve. |
surf | [in] Surface. |
tol | [in] Geometric tolerance. |
OdGeCurveSurfInt::OdGeCurveSurfInt | ( | const OdGeCurveSurfInt & | source | ) |
Copy constructor. Creates an OdGeCurveSurfInt object and initializes it with parameters of the specified source object.
source | [in] Object to be copied. |
const OdGeCurve3d * OdGeCurveSurfInt::curve | ( | ) | const |
Returns the 3d curve.
int OdGeCurveSurfInt::getDimension | ( | int | intNum, |
OdGeIntersectError & | status | ||
) | const |
Returns a dimension of the specified intersection, and retrieves the status of the intersection.
intNum | [in] The zero-based index of the intersection. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
void OdGeCurveSurfInt::getIntConfigs | ( | int | intNum, |
OdGe::csiConfig & | lower, | ||
OdGe::csiConfig & | higher, | ||
bool & | smallAngle, | ||
OdGeIntersectError & | status | ||
) | const |
Calculates the configurations on either side of the surface at the intersection.
intNum | [in] The zero-based index of the intersection curve to return. |
lower | [out] The configuration record of the lower intersection. |
higher | [out] The configuration record of the upper intersection. |
smallAngle | [out] true if the intersection is considered to be a small angle. |
status | [out] Receives the status of the intersection. |
@untitled table kXUnknown kXOut kXIn kXTanOut kXTanIn kXCoincident kXCoincidentUnbounded
Possible values for status are as follows:
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
void OdGeCurveSurfInt::getIntParams | ( | int | intNum, |
double & | param1, | ||
OdGePoint2d & | param2, | ||
OdGeIntersectError & | status | ||
) | const |
Retrieves the parameters of the specified intersection point with respect to the curve and surface, and retrieves the status of the intersection.
intNum | [in] The zero-based index of the intersection curve to return. |
param1 | [out] Receives the parameter of the intersection point with respect to the curve. |
param2 | [out] Receives the parameter pair of the intersection point with respect to the surface. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
void OdGeCurveSurfInt::getOverlapRange | ( | int | intNum, |
OdGeInterval & | range, | ||
OdGeIntersectError & | status | ||
) | const |
Retrieves the range for the curve for the specified overlap, and retrieves the status of the intersection.
intNum | [in] The zero-based index of the overlap range to query. |
range | [out] Receives the range of the curve for the specified overlap. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
void OdGeCurveSurfInt::getPointOnCurve | ( | int | intNum, |
OdGePointOnCurve3d & | intPnt, | ||
OdGeIntersectError & | status | ||
) | const |
Retrieves the intersection point on the curve, and retrieves the status of the intersection.
intNum | [in] The zero-based index of the intersection pooint to return. |
intPnt | [out] Receives the specified intersection point on the curve. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
void OdGeCurveSurfInt::getPointOnSurface | ( | int | intNum, |
OdGePointOnSurface & | intPnt, | ||
OdGeIntersectError & | status | ||
) | const |
Retrieves the intersection point on the surface, and retrieves the status of the intersection.
intNum | [in] The zero-based index of the intersection point to return. |
intPnt | [out] Receives the specified intersection point on the surface. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGeCurve2d * OdGeCurveSurfInt::intParamCurve | ( | int | intNum, |
bool | isExternal, | ||
OdGeIntersectError & | status | ||
) | const |
Returns the 2d curve representing the specified intersection and the status of the intersection.
intNum | [in] The zero-based index of the intersection curve to return. |
isExternal | [in] If true, returns a pointer of OdGeExternalCurve2d (not implemented). |
status | [out] Receives the status of the intersection. |
Possible values for status are as follows:
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGePoint3d OdGeCurveSurfInt::intPoint | ( | int | intNum, |
OdGeIntersectError & | status | ||
) | const |
Returns a 3d point representing the specified intersection, and retrieves the status of the intersection.
intNum | [in] The zero-based index of the intersection. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
int OdGeCurveSurfInt::numIntPoints | ( | OdGeIntersectError & | status | ) | const |
Returns the number of point intersections between the curve and the surface, and retrieves the status of the intersection.
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
int OdGeCurveSurfInt::numResults | ( | OdGeIntersectError & | status | ) | const |
Returns the number of intersections between the curve and the surface, and retrieves the status of the intersection.
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGeCurveSurfInt & OdGeCurveSurfInt::operator= | ( | const OdGeCurveSurfInt & | crvSurfInt | ) |
Assignment operator for the OdGeCurveSurfInt object.
crvSurfInt | [in] OdGeCurveSurfInt object to assign. |
int OdGeCurveSurfInt::overlapCount | ( | OdGeIntersectError & | status | ) | const |
Retrieves the number of interval of overlaps between the curve and the surface, and retrieves the status of the intersection.
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGeCurveSurfInt & OdGeCurveSurfInt::set | ( | const OdGeCurve3d & | crv, |
const OdGeSurface & | surface, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
Specifies the 3d curve, surface, and tolerance for determining intersections.
crv | [in] 3d curve that intersects with the specified surface. |
surface | [in] A surface that intersects with the specified curve. |
tol | [in] Geometric tolerance. |
const OdGeSurface * OdGeCurveSurfInt::surface | ( | ) | const |
Returns the surface.
OdGeTol OdGeCurveSurfInt::tolerance | ( | ) | const |
Returns the tolerance for determining intersections.