Open CASCADE Technology
6.9.0
|
Computes the intersection between a face and a curve. To intersect one curve with shape method Init(Shape, curve, tTol) should be used. To intersect a few curves with specified shape it is necessary to load shape one time using method Load(shape, tol) and find intersection points for each curve using method Init(curve). For iteration by intersection points method More() and Next() should be used. More...
#include <BRepIntCurveSurface_Inter.hxx>
Public Member Functions | |
BRepIntCurveSurface_Inter () | |
Empty constructor;. More... | |
void | Init (const TopoDS_Shape &theShape, const GeomAdaptor_Curve &theCurve, const Standard_Real theTol) |
Load the Shape, the curve and initialize the tolerance used for the classification. More... | |
void | Init (const TopoDS_Shape &theShape, const gp_Lin &theLine, const Standard_Real theTol) |
Load the Shape, the curve and initialize the tolerance used for the classification. More... | |
void | Load (const TopoDS_Shape &theShape, const Standard_Real theTol) |
Load the Shape, and initialize the tolerance used for the classification. More... | |
void | Init (const GeomAdaptor_Curve &theCurve) |
Method to find intersections of specified curve with loaded shape. More... | |
Standard_Boolean | More () const |
returns True if there is a current face. More... | |
void | Next () |
Sets the next intersection point to check. More... | |
IntCurveSurface_IntersectionPoint | Point () const |
returns the current Intersection point. More... | |
const gp_Pnt & | Pnt () const |
returns the current geometric Point More... | |
Standard_Real | U () const |
returns the U parameter of the current point on the current face. More... | |
Standard_Real | V () const |
returns the V parameter of the current point on the current face. More... | |
Standard_Real | W () const |
returns the parameter of the current point on the curve. More... | |
TopAbs_State | State () const |
returns the current state (IN or ON) More... | |
IntCurveSurface_TransitionOnCurve | Transition () const |
returns the transition of the line on the surface (IN or OUT or UNKNOWN) More... | |
const TopoDS_Face & | Face () const |
returns the current face. More... | |
Protected Member Functions | |
void | Find () |
Internal function. More... | |
Standard_Boolean | FindPoint () |
Method chec found intersection point. More... | |
void | Clear () |
Method to clear fields of class. More... | |
Computes the intersection between a face and a curve. To intersect one curve with shape method Init(Shape, curve, tTol) should be used. To intersect a few curves with specified shape it is necessary to load shape one time using method Load(shape, tol) and find intersection points for each curve using method Init(curve). For iteration by intersection points method More() and Next() should be used.
Example: Inter.Load(shape, tol); for( i =1; i <= nbCurves;i++) { Inter.Init(curve); for( ;Inter.More(); Inter.Next()) { ....... } }
BRepIntCurveSurface_Inter::BRepIntCurveSurface_Inter | ( | ) |
Empty constructor;.
|
protected |
Method to clear fields of class.
const TopoDS_Face& BRepIntCurveSurface_Inter::Face | ( | ) | const |
returns the current face.
|
protected |
Internal function.
|
protected |
Method chec found intersection point.
void BRepIntCurveSurface_Inter::Init | ( | const TopoDS_Shape & | theShape, |
const GeomAdaptor_Curve & | theCurve, | ||
const Standard_Real | theTol | ||
) |
Load the Shape, the curve and initialize the tolerance used for the classification.
void BRepIntCurveSurface_Inter::Init | ( | const TopoDS_Shape & | theShape, |
const gp_Lin & | theLine, | ||
const Standard_Real | theTol | ||
) |
Load the Shape, the curve and initialize the tolerance used for the classification.
void BRepIntCurveSurface_Inter::Init | ( | const GeomAdaptor_Curve & | theCurve | ) |
Method to find intersections of specified curve with loaded shape.
void BRepIntCurveSurface_Inter::Load | ( | const TopoDS_Shape & | theShape, |
const Standard_Real | theTol | ||
) |
Load the Shape, and initialize the tolerance used for the classification.
Standard_Boolean BRepIntCurveSurface_Inter::More | ( | ) | const |
returns True if there is a current face.
void BRepIntCurveSurface_Inter::Next | ( | ) |
Sets the next intersection point to check.
const gp_Pnt& BRepIntCurveSurface_Inter::Pnt | ( | ) | const |
returns the current geometric Point
IntCurveSurface_IntersectionPoint BRepIntCurveSurface_Inter::Point | ( | ) | const |
returns the current Intersection point.
TopAbs_State BRepIntCurveSurface_Inter::State | ( | ) | const |
returns the current state (IN or ON)
IntCurveSurface_TransitionOnCurve BRepIntCurveSurface_Inter::Transition | ( | ) | const |
returns the transition of the line on the surface (IN or OUT or UNKNOWN)
Standard_Real BRepIntCurveSurface_Inter::U | ( | ) | const |
returns the U parameter of the current point on the current face.
Standard_Real BRepIntCurveSurface_Inter::V | ( | ) | const |
returns the V parameter of the current point on the current face.
Standard_Real BRepIntCurveSurface_Inter::W | ( | ) | const |
returns the parameter of the current point on the curve.