Open CASCADE Technology  7.5.0.beta
Public Member Functions | Protected Member Functions
BRepIntCurveSurface_Inter Class Reference

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_PntPnt () 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_FaceFace () 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...
 

Detailed Description

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()) { ....... } }

Constructor & Destructor Documentation

◆ BRepIntCurveSurface_Inter()

BRepIntCurveSurface_Inter::BRepIntCurveSurface_Inter ( )

Empty constructor;.

Member Function Documentation

◆ Clear()

void BRepIntCurveSurface_Inter::Clear ( )
protected

Method to clear fields of class.

◆ Face()

const TopoDS_Face& BRepIntCurveSurface_Inter::Face ( ) const

returns the current face.

◆ Find()

void BRepIntCurveSurface_Inter::Find ( )
protected

Internal function.

◆ FindPoint()

Standard_Boolean BRepIntCurveSurface_Inter::FindPoint ( )
protected

Method chec found intersection point.

◆ Init() [1/3]

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.

◆ Init() [2/3]

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.

◆ Init() [3/3]

void BRepIntCurveSurface_Inter::Init ( const GeomAdaptor_Curve theCurve)

Method to find intersections of specified curve with loaded shape.

◆ Load()

void BRepIntCurveSurface_Inter::Load ( const TopoDS_Shape theShape,
const Standard_Real  theTol 
)

Load the Shape, and initialize the tolerance used for the classification.

◆ More()

Standard_Boolean BRepIntCurveSurface_Inter::More ( ) const

returns True if there is a current face.

◆ Next()

void BRepIntCurveSurface_Inter::Next ( )

Sets the next intersection point to check.

◆ Pnt()

const gp_Pnt& BRepIntCurveSurface_Inter::Pnt ( ) const

returns the current geometric Point

◆ Point()

IntCurveSurface_IntersectionPoint BRepIntCurveSurface_Inter::Point ( ) const

returns the current Intersection point.

◆ State()

TopAbs_State BRepIntCurveSurface_Inter::State ( ) const

returns the current state (IN or ON)

◆ Transition()

IntCurveSurface_TransitionOnCurve BRepIntCurveSurface_Inter::Transition ( ) const

returns the transition of the line on the surface (IN or OUT or UNKNOWN)

◆ U()

Standard_Real BRepIntCurveSurface_Inter::U ( ) const

returns the U parameter of the current point on the current face.

◆ V()

Standard_Real BRepIntCurveSurface_Inter::V ( ) const

returns the V parameter of the current point on the current face.

◆ W()

Standard_Real BRepIntCurveSurface_Inter::W ( ) const

returns the parameter of the current point on the curve.


The documentation for this class was generated from the following file: