![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
This class implements methods for computing intersection points and segments between a. More...
#include <GeomAPI_IntCS.hxx>
Public Member Functions | |
| GeomAPI_IntCS () | |
| Creates an empty object. Use the function Perform for further initialization of the algorithm by the curve and the surface. | |
| GeomAPI_IntCS (const occ::handle< Geom_Curve > &C, const occ::handle< Geom_Surface > &S) | |
| Computes the intersections between the curve C and the surface S. Warning Use function IsDone to verify that the intersections are computed successfully. | |
| void | Perform (const occ::handle< Geom_Curve > &C, const occ::handle< Geom_Surface > &S) |
| This function Initializes an algorithm with the curve C and the surface S and computes the intersections between C and S. Warning Use function IsDone to verify that the intersections are computed successfully. | |
| bool | IsDone () const |
| Returns true if the intersections are successfully computed. | |
| int | NbPoints () const |
| Returns the number of Intersection Points if IsDone returns True. else NotDone is raised. | |
| const gp_Pnt & | Point (const int Index) const |
| Returns the Intersection Point of range <Index>in case of cross intersection. Raises NotDone if the computation has failed or if the computation has not been done raises OutOfRange if Index is not in the range <1..NbPoints> | |
| void | Parameters (const int Index, double &U, double &V, double &W) const |
| Returns parameter W on the curve and (parameters U,V) on the surface of the computed intersection point of index Index in case of cross intersection. Exceptions StdFail_NotDone if intersection algorithm fails or is not initialized. Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of computed intersection points. | |
| int | NbSegments () const |
| Returns the number of computed intersection segments in case of tangential intersection. Exceptions StdFail_NotDone if the intersection algorithm fails or is not initialized. | |
| occ::handle< Geom_Curve > | Segment (const int Index) const |
| Returns the computed intersection segment of index Index in case of tangential intersection. Intersection segment is a portion of the initial curve tangent to surface. Exceptions StdFail_NotDone if intersection algorithm fails or is not initialized. Standard_OutOfRange if Index is not in the range [ 1,NbSegments ], where NbSegments is the number of computed intersection segments. | |
| void | Parameters (const int Index, double &U1, double &V1, double &U2, double &V2) const |
| Returns the parameters of the first (U1,V1) and the last (U2,V2) points of curve's segment on the surface in case of tangential intersection. Index is the number of computed intersection segments. Exceptions StdFail_NotDone if intersection algorithm fails or is not initialized. Standard_OutOfRange if Index is not in the range [ 1,NbSegments ], where NbSegments is the number of computed intersection segments. | |
This class implements methods for computing intersection points and segments between a.
| GeomAPI_IntCS::GeomAPI_IntCS | ( | ) |
Creates an empty object. Use the function Perform for further initialization of the algorithm by the curve and the surface.
| GeomAPI_IntCS::GeomAPI_IntCS | ( | const occ::handle< Geom_Curve > & | C, |
| const occ::handle< Geom_Surface > & | S ) |
Computes the intersections between the curve C and the surface S. Warning Use function IsDone to verify that the intersections are computed successfully.
| bool GeomAPI_IntCS::IsDone | ( | ) | const |
Returns true if the intersections are successfully computed.
| int GeomAPI_IntCS::NbPoints | ( | ) | const |
Returns the number of Intersection Points if IsDone returns True. else NotDone is raised.
| int GeomAPI_IntCS::NbSegments | ( | ) | const |
Returns the number of computed intersection segments in case of tangential intersection. Exceptions StdFail_NotDone if the intersection algorithm fails or is not initialized.
Returns parameter W on the curve and (parameters U,V) on the surface of the computed intersection point of index Index in case of cross intersection. Exceptions StdFail_NotDone if intersection algorithm fails or is not initialized. Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of computed intersection points.
| void GeomAPI_IntCS::Parameters | ( | const int | Index, |
| double & | U1, | ||
| double & | V1, | ||
| double & | U2, | ||
| double & | V2 ) const |
Returns the parameters of the first (U1,V1) and the last (U2,V2) points of curve's segment on the surface in case of tangential intersection. Index is the number of computed intersection segments. Exceptions StdFail_NotDone if intersection algorithm fails or is not initialized. Standard_OutOfRange if Index is not in the range [ 1,NbSegments ], where NbSegments is the number of computed intersection segments.
| void GeomAPI_IntCS::Perform | ( | const occ::handle< Geom_Curve > & | C, |
| const occ::handle< Geom_Surface > & | S ) |
This function Initializes an algorithm with the curve C and the surface S and computes the intersections between C and S. Warning Use function IsDone to verify that the intersections are computed successfully.
Returns the Intersection Point of range <Index>in case of cross intersection. Raises NotDone if the computation has failed or if the computation has not been done raises OutOfRange if Index is not in the range <1..NbPoints>
| occ::handle< Geom_Curve > GeomAPI_IntCS::Segment | ( | const int | Index | ) | const |
Returns the computed intersection segment of index Index in case of tangential intersection. Intersection segment is a portion of the initial curve tangent to surface. Exceptions StdFail_NotDone if intersection algorithm fails or is not initialized. Standard_OutOfRange if Index is not in the range [ 1,NbSegments ], where NbSegments is the number of computed intersection segments.