CFx SDK Documentation
2020SP3
|
#include <GeCurveCurveInt2d.h>
Additional Inherited Members | |
Protected Member Functions inherited from OdGeEntity2d | |
OdGeEntity2d () | |
OdGeEntity2d (const OdGeEntity2d &) | |
void | connectTo (OdGeEntity2dImpl *) |
This class represents intersections of 2D curves. Currently not implemented.
If one of the curve objects is deleted, the intersection must be recalculated.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 49 of file GeCurveCurveInt2d.h.
OdGeCurveCurveInt2d::OdGeCurveCurveInt2d | ( | ) |
Constructors.
curve1 | [in] First 2D curve. |
curve2 | [in] Second 2D curve. |
range1 | [in] Range of first curve. |
range2 | [in] Range of second curve. |
tol | [in] Geometric tolerance. |
source | [in] Object to be cloned. |
OdGeCurveCurveInt2d::OdGeCurveCurveInt2d | ( | const OdGeCurve2d & | curve1, |
const OdGeCurve2d & | curve2, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
OdGeCurveCurveInt2d::OdGeCurveCurveInt2d | ( | const OdGeCurve2d & | curve1, |
const OdGeCurve2d & | curve2, | ||
const OdGeInterval & | range1, | ||
const OdGeInterval & | range2, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
OdGeCurveCurveInt2d::OdGeCurveCurveInt2d | ( | const OdGeCurveCurveInt2d & | source | ) |
void OdGeCurveCurveInt2d::changeCurveOrder | ( | ) |
Makes the first curve the second, and vice versa.
const OdGeCurve2d* OdGeCurveCurveInt2d::curve1 | ( | ) | const |
Returns the first curve.
const OdGeCurve2d* OdGeCurveCurveInt2d::curve2 | ( | ) | const |
Returns the second curve.
void OdGeCurveCurveInt2d::getIntConfigs | ( | int | intNum, |
OdGe::OdGeXConfig & | config1wrt2, | ||
OdGe::OdGeXConfig & | config2wrt1 | ||
) | const |
Returns the configuration of the intersecion point of the first curve with respect to the second, and vice versa.
intNum | [in] The zero-based index of the intersection point to query. |
config1wrt2 | [out] Receives the configuration of the first curve with respect to the second. |
config2wrt1 | [out] Receives the configuration of the second curve with respect to the first. |
@untitled table kNotDefined kUnknown kLeftRight kRightLeft kLeftLeft kRightRight kPointLeft kPointRight kLeftOverlap kOverlapLeft kRightOverlap kOverlapRight kOverlapStart kOverlapEnd, kOverlapOverlap
void OdGeCurveCurveInt2d::getIntParams | ( | int | intNum, |
double & | param1, | ||
double & | param2 | ||
) | const |
Returns the curve parameters at the specified intersection point.
intNum | [in] The zero-based index of the intersection point to return. |
param1 | [out] Receives the parameter of the first curve at the intersection point. |
param2 | [out] Receives the parameter of the second curve at the intersection point. |
void OdGeCurveCurveInt2d::getIntRanges | ( | OdGeInterval & | range1, |
OdGeInterval & | range2 | ||
) | const |
Returns the ranges of the two curves.
range1 | [out] Receives the range of the first curve. |
range2 | [out] Receives the range of the second curve. |
void OdGeCurveCurveInt2d::getOverlapRanges | ( | int | overlapNum, |
OdGeInterval & | range1, | ||
OdGeInterval & | range2 | ||
) | const |
Returns the ranges for each curve a the specified overlap.
overlapNum | [in] The zero-based index of the overlap range to query. |
range1 | [out] Receives the range of the first curve for the specified overlap. |
range2 | [out] Receives the range of the second curve for the specified overlap. |
void OdGeCurveCurveInt2d::getPointOnCurve1 | ( | int | intNum, |
OdGePointOnCurve2d & | intPnt | ||
) | const |
Returns the specified intersection point as an OdGePointOnCurve2d on the first curve.
intNum | [in] The zero-based index of the intersection point to return. |
intPnt | [out] Receives the specified intersection point on the first curve. |
void OdGeCurveCurveInt2d::getPointOnCurve2 | ( | int | intNum, |
OdGePointOnCurve2d & | intPnt | ||
) | const |
Returns the specified intersection point as an OdGePointOnCurve2d on the second curve.
intNum | [in] The zero-based index of the intersection point to return. |
intPnt | [out] Receives the specified intersection point on the second curve. |
OdGePoint2d OdGeCurveCurveInt2d::intPoint | ( | int | intNum | ) | const |
Returns the specified intersection point.
intNum | [in] The zero-based index of the intersection point to return. |
double OdGeCurveCurveInt2d::intPointTol | ( | int | intNum | ) | const |
Returns the tolerance used to compute the specified intersection point.
intNum | [in] The zero-based index of the intersection point to query. |
bool OdGeCurveCurveInt2d::isTangential | ( | int | intNum | ) | const |
Returns true if and only if the curves are tangential at specified intersection point
intNum | [in] The zero-based index of the intersection point to query. |
bool OdGeCurveCurveInt2d::isTransversal | ( | int | intNum | ) | const |
Returns true if and only if the curves are transversal (cross) at specified intersection point
intNum | [in] The zero-based index of the intersection point to query. |
int OdGeCurveCurveInt2d::numIntPoints | ( | ) | const |
Returns the number of intersections between the curves within the specified ranges.
OdGeCurveCurveInt2d& OdGeCurveCurveInt2d::operator= | ( | const OdGeCurveCurveInt2d & | crvCrvInt | ) |
OdGeCurveCurveInt2d& OdGeCurveCurveInt2d::orderWrt1 | ( | ) |
Orders the intersection points so they correspond to increasing parameter values of the first curve.
OdGeCurveCurveInt2d& OdGeCurveCurveInt2d::orderWrt2 | ( | ) |
Orders the intersection points so they correspond to increasing parameter values of the second curve.
int OdGeCurveCurveInt2d::overlapCount | ( | ) | const |
Returns the number of intervals of overlap for the two curves.
bool OdGeCurveCurveInt2d::overlapDirection | ( | ) | const |
Returns true if and only if the curves are oriented in the same direction where they overlap.
OdGeCurveCurveInt2d& OdGeCurveCurveInt2d::set | ( | const OdGeCurve2d & | curve1, |
const OdGeCurve2d & | curve2, | ||
const OdGeInterval & | range1, | ||
const OdGeInterval & | range2, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
Sets the curves, ranges and tolerance for which to determine intersections
curve1 | [in] First 2D curve. |
curve2 | [in] Second 2D curve. |
range1 | [in] Range of first curve. |
range2 | [in] Range of second curve. |
tol | [in] Geometric tolerance. |
OdGeCurveCurveInt2d& OdGeCurveCurveInt2d::set | ( | const OdGeCurve2d & | curve1, |
const OdGeCurve2d & | curve2, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) |
Sets the curves and tolerance for which to determine intersections
curve1 | [in] First 2D curve. |
curve2 | [in] Second 2D curve. |
tol | [in] Geometric tolerance. |
OdGeTol OdGeCurveCurveInt2d::tolerance | ( | ) | const |
Returns the tolerance for determining intersections.