Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
LocOpe_CSIntersector Class Reference

This class provides the intersection between a set of axis or a circle and the faces of a shape. The intersection points are sorted in increasing parameter along each axis or circle. More...

#include <LocOpe_CSIntersector.hxx>

Public Member Functions

 LocOpe_CSIntersector ()
 Empty constructor.
 
 LocOpe_CSIntersector (const TopoDS_Shape &S)
 Creates and performs the intersection between <Ax1> and .
 
void Init (const TopoDS_Shape &S)
 Performs the intersection between <Ax1 and .
 
void Perform (const NCollection_Sequence< gp_Lin > &Slin)
 
void Perform (const NCollection_Sequence< gp_Circ > &Scir)
 
void Perform (const NCollection_Sequence< occ::handle< Geom_Curve > > &Scur)
 
bool IsDone () const
 Returns <true> if the intersection has been done.
 
int NbPoints (const int I) const
 Returns the number of intersection point on the element of range .
 
const LocOpe_PntFacePoint (const int I, const int Index) const
 Returns the intersection point of range <Index> on element of range . The points are sorted in increasing order of parameter along the axis.
 
bool LocalizeAfter (const int I, const double From, const double Tol, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const
 On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.
 
bool LocalizeBefore (const int I, const double From, const double Tol, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const
 On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.
 
bool LocalizeAfter (const int I, const int FromInd, const double Tol, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const
 On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.
 
bool LocalizeBefore (const int I, const int FromInd, const double Tol, TopAbs_Orientation &Or, int &IndFrom, int &IndTo) const
 On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.
 
void Destroy ()
 
 ~LocOpe_CSIntersector ()
 

Detailed Description

This class provides the intersection between a set of axis or a circle and the faces of a shape. The intersection points are sorted in increasing parameter along each axis or circle.

Constructor & Destructor Documentation

◆ LocOpe_CSIntersector() [1/2]

LocOpe_CSIntersector::LocOpe_CSIntersector ( )

Empty constructor.

◆ LocOpe_CSIntersector() [2/2]

LocOpe_CSIntersector::LocOpe_CSIntersector ( const TopoDS_Shape & S)

Creates and performs the intersection between <Ax1> and .

◆ ~LocOpe_CSIntersector()

LocOpe_CSIntersector::~LocOpe_CSIntersector ( )
inline

Member Function Documentation

◆ Destroy()

void LocOpe_CSIntersector::Destroy ( )

◆ Init()

void LocOpe_CSIntersector::Init ( const TopoDS_Shape & S)

Performs the intersection between <Ax1 and .

◆ IsDone()

bool LocOpe_CSIntersector::IsDone ( ) const

Returns <true> if the intersection has been done.

◆ LocalizeAfter() [1/2]

bool LocOpe_CSIntersector::LocalizeAfter ( const int I,
const double From,
const double Tol,
TopAbs_Orientation & Or,
int & IndFrom,
int & IndTo ) const

On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.

Otherwise, returns <false>.

◆ LocalizeAfter() [2/2]

bool LocOpe_CSIntersector::LocalizeAfter ( const int I,
const int FromInd,
const double Tol,
TopAbs_Orientation & Or,
int & IndFrom,
int & IndTo ) const

On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.

Otherwise, returns <false>.

◆ LocalizeBefore() [1/2]

bool LocOpe_CSIntersector::LocalizeBefore ( const int I,
const double From,
const double Tol,
TopAbs_Orientation & Or,
int & IndFrom,
int & IndTo ) const

On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.

Otherwise, returns <false>.

◆ LocalizeBefore() [2/2]

bool LocOpe_CSIntersector::LocalizeBefore ( const int I,
const int FromInd,
const double Tol,
TopAbs_Orientation & Or,
int & IndFrom,
int & IndTo ) const

On the element of range , 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). <Tol> is used to determine if 2 parameters are equal.

Otherwise, returns <false>.

◆ NbPoints()

int LocOpe_CSIntersector::NbPoints ( const int I) const

Returns the number of intersection point on the element of range .

◆ Perform() [1/3]

void LocOpe_CSIntersector::Perform ( const NCollection_Sequence< gp_Circ > & Scir)

◆ Perform() [2/3]

void LocOpe_CSIntersector::Perform ( const NCollection_Sequence< gp_Lin > & Slin)

◆ Perform() [3/3]

void LocOpe_CSIntersector::Perform ( const NCollection_Sequence< occ::handle< Geom_Curve > > & Scur)

◆ Point()

const LocOpe_PntFace & LocOpe_CSIntersector::Point ( const int I,
const int Index ) const

Returns the intersection point of range <Index> on element of range . The points are sorted in increasing order of parameter along the axis.


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