![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
This class provides the intersection between an axis or a circle and the faces of a shape. The intersection points are sorted in increasing parameter along the axis. More...
#include <LocOpe_CurveShapeIntersector.hxx>
Public Member Functions | |
| LocOpe_CurveShapeIntersector () | |
| Empty constructor. | |
| LocOpe_CurveShapeIntersector (const gp_Ax1 &Axis, const TopoDS_Shape &S) | |
| Creates and performs the intersection between <Ax1> and | |
| LocOpe_CurveShapeIntersector (const gp_Circ &C, const TopoDS_Shape &S) | |
Creates and performs the intersection between and | |
| void | Init (const gp_Ax1 &Axis, const TopoDS_Shape &S) |
| Performs the intersection between <Ax1 and | |
| void | Init (const gp_Circ &C, const TopoDS_Shape &S) |
| Performs the intersection between <Ax1 and | |
| bool | IsDone () const |
| Returns <true> if the intersection has been done. | |
| int | NbPoints () const |
| Returns the number of intersection point. | |
| const LocOpe_PntFace & | Point (const int Index) const |
| Returns the intersection point of range <Index>. The points are sorted in increasing order of parameter along the axis. | |
| bool | LocalizeAfter (const double From, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const |
| Searches the first intersection point located after the parameter <From>, which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo). | |
| bool | LocalizeBefore (const double From, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const |
| Searches the first intersection point located before the parameter <From>, which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo). | |
| bool | LocalizeAfter (const int FromInd, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const |
| Searches the first intersection point located after the index <FromInd> (>= FromInd + 1), which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo). | |
| bool | LocalizeBefore (const int FromInd, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const |
| Searches the first intersection point located before the index <FromInd> ( <= FromInd -1), which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo). | |
This class provides the intersection between an axis or a circle and the faces of a shape. The intersection points are sorted in increasing parameter along the axis.
| LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector | ( | ) |
Empty constructor.
| LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector | ( | const gp_Ax1 & | Axis, |
| const TopoDS_Shape & | S ) |
Creates and performs the intersection between <Ax1> and .
| LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector | ( | const gp_Circ & | C, |
| const TopoDS_Shape & | S ) |
Creates and performs the intersection between and .
| void LocOpe_CurveShapeIntersector::Init | ( | const gp_Ax1 & | Axis, |
| const TopoDS_Shape & | S ) |
Performs the intersection between <Ax1 and .
| void LocOpe_CurveShapeIntersector::Init | ( | const gp_Circ & | C, |
| const TopoDS_Shape & | S ) |
Performs the intersection between <Ax1 and .
| bool LocOpe_CurveShapeIntersector::IsDone | ( | ) | const |
Returns <true> if the intersection has been done.
| bool LocOpe_CurveShapeIntersector::LocalizeAfter | ( | const double | From, |
| TopAbs_Orientation & | Or, | ||
| int & | IndFrom, | ||
| int & | IndTo ) const |
Searches the first intersection point located after the parameter <From>, which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo).
Otherwise, returns <false>.
| bool LocOpe_CurveShapeIntersector::LocalizeAfter | ( | const int | FromInd, |
| TopAbs_Orientation & | Or, | ||
| int & | IndFrom, | ||
| int & | IndTo ) const |
Searches the first intersection point located after the index <FromInd> (>= FromInd + 1), which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo).
Otherwise, returns <false>.
| bool LocOpe_CurveShapeIntersector::LocalizeBefore | ( | const double | From, |
| TopAbs_Orientation & | Or, | ||
| int & | IndFrom, | ||
| int & | IndTo ) const |
Searches the first intersection point located before the parameter <From>, which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo).
Otherwise, returns <false>.
| bool LocOpe_CurveShapeIntersector::LocalizeBefore | ( | const int | FromInd, |
| TopAbs_Orientation & | Or, | ||
| int & | IndFrom, | ||
| int & | IndTo ) const |
Searches the first intersection point located before the index <FromInd> ( <= FromInd -1), which orientation is not TopAbs_EXTERNAL. If found, returns <true>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo).
Otherwise, returns <false>.
| int LocOpe_CurveShapeIntersector::NbPoints | ( | ) | const |
Returns the number of intersection point.
| const LocOpe_PntFace & LocOpe_CurveShapeIntersector::Point | ( | const int | Index | ) | const |
Returns the intersection point of range <Index>. The points are sorted in increasing order of parameter along the axis.