CFx SDK Documentation 2024 SP0
|
#include <GeSurfSurfInt.h>
Additional Inherited Members | |
Protected Member Functions inherited from OdGeEntity3d | |
OdGeEntity3d () | |
OdGeEntity3d (const OdGeEntity3d &) | |
void | connectTo (OdGeEntity3dImpl *) |
This class holds the intersection data of two surfaces.
Any output geometry from an intersection object is owned by the caller. The const base objects returned by surface1() and surface2() are not considered output objects.
If one of the objects is deleted, the intersection must be recalculated. If one of the object is NULL, kXXUnknown status is set and zero value is returned.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 55 of file GeSurfSurfInt.h.
OdGeSurfSurfInt::OdGeSurfSurfInt | ( | ) |
Default constructor for the OdGeSurfSurfInt class. Constructs an invalid surface-surface intersector with no intersection surfaces and default tolerance.
OdGeSurfSurfInt::OdGeSurfSurfInt | ( | const OdGeSurface & | srf1, |
const OdGeSurface & | srf2, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
Constructor. Creates an OdGeSurfSurfInt object with specified two surfaces and geometric tolerance.
srf1 | [in] First surface that intersects with the second surface. |
srf2 | [in] Second surface that intersects with the first surface. |
tol | [in] Geometric tolerance. |
OdGeSurfSurfInt::OdGeSurfSurfInt | ( | const OdGeSurfSurfInt & | source | ) |
Copy constructor. Creates an OdGeSurfSurf object and initializes it with parameters of the specified source object.
source | [in] A surface intersection object to be copied. |
int OdGeSurfSurfInt::getDimension | ( | int | intNum, |
OdGeIntersectError & | status | ||
) | const |
Returns the dimension of the intersection point by its index.
intNum | [in] The zero-based index of the intersection curve to return. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
void OdGeSurfSurfInt::getIntConfigs | ( | int | intNum, |
OdGe::ssiConfig & | surf1Left, | ||
OdGe::ssiConfig & | surf1Right, | ||
OdGe::ssiConfig & | surf2Left, | ||
OdGe::ssiConfig & | surf2Right, | ||
OdGe::ssiType & | intType, | ||
int & | dim, | ||
OdGeIntersectError & | status | ||
) | const |
Retrieves the configurations on either side of the intersection each surface.
intNum | [in] The zero-based index of the intersection curve to return. |
surf1Left | [out] Receives the configuration for surface 1 on the left side of the intersection. |
surf1Right | [out] Receives the configuration for surface 1 on the right side of the intersection. |
surf2Left | [out] Receives the configuration for surface 2 on the left side of the intersection. |
surf2Right | [out] Receives the configuration for surface 2 on the right side of the intersection. |
intType | [out] Receives the intersection type. |
dim | [out] Receives the dimension of the intersection. |
status | [out] Receives the status of the intersection. |
@untitled table kSSIUnknown kSSIOut Neighborhood is outside this surface. kSSIIn Neighborhood is inside this surface. kSSICoincident Non-zero area intersection.
Possible values for status are as follows:
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
void OdGeSurfSurfInt::getIntPointParams | ( | int | intNum, |
OdGePoint2d & | param1, | ||
OdGePoint2d & | param2, | ||
OdGeIntersectError & | status | ||
) | const |
Retrieves the parameter pairs for the specified intersection point with respect to each surface, and the status of the intersection.
intNum | [in] The zero-based index of the intersection curve to return. |
param1 | [out] Receives the parameter pair of the intersection point with respect to the first curve. |
param2 | [out] Receives the parameter pair of the intersection point with respect to the second curve. |
status | [out] Receives the status of the intersection. |
Possible values for status are as follows:
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGe::ssiType OdGeSurfSurfInt::getType | ( | int | intNum, |
OdGeIntersectError & | status | ||
) | const |
Returns the type of the specified intersection.
intNum | [in] The zero-based index of the intersection curve to return. |
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
bool OdGeSurfSurfInt::haveOverlap | ( | OdGeIntersectError & | status | ) | const |
Checks if the surfaces have an overlap.
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGeCurve3d * OdGeSurfSurfInt::intCurve | ( | int | intNum, |
bool | isExternal, | ||
OdGeIntersectError & | status | ||
) | const |
Returns the 3d 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 OdGeExternalCurve3d (not implemented). |
status | [out] Receives the status of the intersection. |
Possible values for status are as follows:
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGeCurve2d * OdGeSurfSurfInt::intParamCurve | ( | int | intNum, |
bool | isExternal, | ||
bool | isFirst, | ||
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). |
isFirst | [in] If true, returns the curve on the first surface, otherwise it the curve on the second surface. |
status | [out] Receives the status of the intersection. |
Possible values for status are as follows:
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
OdGePoint3d OdGeSurfSurfInt::intPoint | ( | int | intNum, |
OdGeIntersectError & | status | ||
) | const |
Returns the 3d point representing the specified intersection, and the status of the intersection.
intNum | [in] The zero-based index of the intersection curve to return. |
status | [out] Receives the status of the intersection. |
Possible values for status are as follows:
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
int OdGeSurfSurfInt::numIntCurves | ( | OdGeIntersectError & | status | ) | const |
Returns the number of intersection curves for the two surfaces
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXIndexOutOfRange kXXWrongDimensionAtIndex kXXUnknown
int OdGeSurfSurfInt::numIntPoints | ( | OdGeIntersectError & | status | ) | const |
Returns the number of intersections between the surfaces.
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXUnknown
int OdGeSurfSurfInt::numResults | ( | OdGeIntersectError & | status | ) | const |
Returns the number of intersections between the two surfaces, and the status of the intersections.
status | [out] Receives the status of the intersection. |
@untitled table kXXOk kXXUnknown
OdGeSurfSurfInt & OdGeSurfSurfInt::operator= | ( | const OdGeSurfSurfInt & | surfSurfInt | ) |
Assignment operator for the OdGeSurfSurfInt object.
surfSurfInt | [in] OdGeSurfSurfInt object to assign. |
OdGeSurfSurfInt & OdGeSurfSurfInt::set | ( | const OdGeSurface & | srf1, |
const OdGeSurface & | srf2, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
Sets the surfaces and tolerances to be used for determining intersection data.
srf1 | [in] First surface to be intersected. |
srf2 | [in] Second surface to be intersected. |
tol | [in] Geometric tolerance. |
const OdGeSurface * OdGeSurfSurfInt::surface1 | ( | ) | const |
Returns a constant pointer to the first surface of intersection.
const OdGeSurface * OdGeSurfSurfInt::surface2 | ( | ) | const |
Returns a constant pointer to the second surface of intersection.
OdGeTol OdGeSurfSurfInt::tolerance | ( | ) | const |
Returns the tolerance for determining intersections.