Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
BRepClass_FaceExplorer Class Reference

Provide an exploration of a BRep Face for the classification. Return UV edges. More...

#include <BRepClass_FaceExplorer.hxx>

Public Member Functions

 BRepClass_FaceExplorer (const TopoDS_Face &F)
 
bool CheckPoint (gp_Pnt2d &thePoint)
 Checks the point and change its coords if it is located too far from the bounding box of the face. New Coordinates of the point will be on the line between the point and the center of the bounding box. Returns True if point was not changed.
 
bool Reject (const gp_Pnt2d &P) const
 Should return True if the point is outside a bounding volume of the face.
 
bool Segment (const gp_Pnt2d &P, gp_Lin2d &L, double &Par)
 Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections.
 
bool OtherSegment (const gp_Pnt2d &P, gp_Lin2d &L, double &Par)
 Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections. Each call gives another segment.
 
void InitWires ()
 Starts an exploration of the wires.
 
bool MoreWires () const
 Returns True if there is a current wire.
 
void NextWire ()
 Sets the explorer to the next wire.
 
bool RejectWire (const gp_Lin2d &L, const double Par) const
 Returns True if the wire bounding volume does not intersect the segment.
 
void InitEdges ()
 Starts an exploration of the edges of the current wire.
 
bool MoreEdges () const
 Returns True if there is a current edge.
 
void NextEdge ()
 Sets the explorer to the next edge.
 
bool RejectEdge (const gp_Lin2d &L, const double Par) const
 Returns True if the edge bounding volume does not intersect the segment.
 
void CurrentEdge (BRepClass_Edge &E, TopAbs_Orientation &Or) const
 Current edge in current wire and its orientation.
 
double MaxTolerance () const
 Returns the maximum tolerance.
 
void SetMaxTolerance (const double theValue)
 Sets the maximum tolerance at which to start checking in the intersector.
 
bool UseBndBox () const
 Returns true if we are using boxes in the intersector.
 
void SetUseBndBox (const bool theValue)
 Sets the status of whether we are using boxes or not.
 

Protected Member Functions

void ComputeFaceBounds ()
 Computes UV bounds of a face.
 

Detailed Description

Provide an exploration of a BRep Face for the classification. Return UV edges.

Constructor & Destructor Documentation

◆ BRepClass_FaceExplorer()

BRepClass_FaceExplorer::BRepClass_FaceExplorer ( const TopoDS_Face & F)

Member Function Documentation

◆ CheckPoint()

bool BRepClass_FaceExplorer::CheckPoint ( gp_Pnt2d & thePoint)

Checks the point and change its coords if it is located too far from the bounding box of the face. New Coordinates of the point will be on the line between the point and the center of the bounding box. Returns True if point was not changed.

◆ ComputeFaceBounds()

void BRepClass_FaceExplorer::ComputeFaceBounds ( )
protected

Computes UV bounds of a face.

◆ CurrentEdge()

void BRepClass_FaceExplorer::CurrentEdge ( BRepClass_Edge & E,
TopAbs_Orientation & Or ) const

Current edge in current wire and its orientation.

◆ InitEdges()

void BRepClass_FaceExplorer::InitEdges ( )

Starts an exploration of the edges of the current wire.

◆ InitWires()

void BRepClass_FaceExplorer::InitWires ( )

Starts an exploration of the wires.

◆ MaxTolerance()

double BRepClass_FaceExplorer::MaxTolerance ( ) const
inline

Returns the maximum tolerance.

◆ MoreEdges()

bool BRepClass_FaceExplorer::MoreEdges ( ) const
inline

Returns True if there is a current edge.

◆ MoreWires()

bool BRepClass_FaceExplorer::MoreWires ( ) const
inline

Returns True if there is a current wire.

◆ NextEdge()

void BRepClass_FaceExplorer::NextEdge ( )
inline

Sets the explorer to the next edge.

◆ NextWire()

void BRepClass_FaceExplorer::NextWire ( )
inline

Sets the explorer to the next wire.

◆ OtherSegment()

bool BRepClass_FaceExplorer::OtherSegment ( const gp_Pnt2d & P,
gp_Lin2d & L,
double & Par )

Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections. Each call gives another segment.

◆ Reject()

bool BRepClass_FaceExplorer::Reject ( const gp_Pnt2d & P) const

Should return True if the point is outside a bounding volume of the face.

◆ RejectEdge()

bool BRepClass_FaceExplorer::RejectEdge ( const gp_Lin2d & L,
const double Par ) const

Returns True if the edge bounding volume does not intersect the segment.

◆ RejectWire()

bool BRepClass_FaceExplorer::RejectWire ( const gp_Lin2d & L,
const double Par ) const

Returns True if the wire bounding volume does not intersect the segment.

◆ Segment()

bool BRepClass_FaceExplorer::Segment ( const gp_Pnt2d & P,
gp_Lin2d & L,
double & Par )

Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections.

◆ SetMaxTolerance()

void BRepClass_FaceExplorer::SetMaxTolerance ( const double theValue)
inline

Sets the maximum tolerance at which to start checking in the intersector.

◆ SetUseBndBox()

void BRepClass_FaceExplorer::SetUseBndBox ( const bool theValue)
inline

Sets the status of whether we are using boxes or not.

◆ UseBndBox()

bool BRepClass_FaceExplorer::UseBndBox ( ) const
inline

Returns true if we are using boxes in the intersector.


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