Open CASCADE Technology
7.6.0
|
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) | |
Standard_Boolean | 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. More... | |
Standard_Boolean | Reject (const gp_Pnt2d &P) const |
Should return True if the point is outside a bounding volume of the face. More... | |
Standard_Boolean | Segment (const gp_Pnt2d &P, gp_Lin2d &L, Standard_Real &Par) |
Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections. More... | |
Standard_Boolean | OtherSegment (const gp_Pnt2d &P, gp_Lin2d &L, Standard_Real &Par) |
Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections. Each call gives another segment. More... | |
void | InitWires () |
Starts an exploration of the wires. More... | |
Standard_Boolean | MoreWires () const |
Returns True if there is a current wire. More... | |
void | NextWire () |
Sets the explorer to the next wire. More... | |
Standard_Boolean | RejectWire (const gp_Lin2d &L, const Standard_Real Par) const |
Returns True if the wire bounding volume does not intersect the segment. More... | |
void | InitEdges () |
Starts an exploration of the edges of the current wire. More... | |
Standard_Boolean | MoreEdges () const |
Returns True if there is a current edge. More... | |
void | NextEdge () |
Sets the explorer to the next edge. More... | |
Standard_Boolean | RejectEdge (const gp_Lin2d &L, const Standard_Real Par) const |
Returns True if the edge bounding volume does not intersect the segment. More... | |
void | CurrentEdge (BRepClass_Edge &E, TopAbs_Orientation &Or) const |
Current edge in current wire and its orientation. More... | |
Standard_Real | MaxTolerance () const |
Returns the maximum tolerance. More... | |
void | SetMaxTolerance (const Standard_Real theValue) |
Sets the maximum tolerance at which to start checking in the intersector. More... | |
Standard_Boolean | UseBndBox () const |
Returns true if we are using boxes in the intersector. More... | |
void | SetUseBndBox (const Standard_Boolean theValue) |
Sets the status of whether we are using boxes or not. More... | |
Protected Member Functions | |
void | ComputeFaceBounds () |
Computes UV bounds of a face. More... | |
Provide an exploration of a BRep Face for the classification. Return UV edges.
BRepClass_FaceExplorer::BRepClass_FaceExplorer | ( | const TopoDS_Face & | F | ) |
Standard_Boolean 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.
|
protected |
Computes UV bounds of a face.
void BRepClass_FaceExplorer::CurrentEdge | ( | BRepClass_Edge & | E, |
TopAbs_Orientation & | Or | ||
) | const |
Current edge in current wire and its orientation.
void BRepClass_FaceExplorer::InitEdges | ( | ) |
Starts an exploration of the edges of the current wire.
void BRepClass_FaceExplorer::InitWires | ( | ) |
Starts an exploration of the wires.
|
inline |
Returns the maximum tolerance.
Standard_Boolean BRepClass_FaceExplorer::MoreEdges | ( | ) | const |
Returns True if there is a current edge.
Standard_Boolean BRepClass_FaceExplorer::MoreWires | ( | ) | const |
Returns True if there is a current wire.
void BRepClass_FaceExplorer::NextEdge | ( | ) |
Sets the explorer to the next edge.
void BRepClass_FaceExplorer::NextWire | ( | ) |
Sets the explorer to the next wire.
Standard_Boolean BRepClass_FaceExplorer::OtherSegment | ( | const gp_Pnt2d & | P, |
gp_Lin2d & | L, | ||
Standard_Real & | Par | ||
) |
Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections. Each call gives another segment.
Standard_Boolean BRepClass_FaceExplorer::Reject | ( | const gp_Pnt2d & | P | ) | const |
Should return True if the point is outside a bounding volume of the face.
Standard_Boolean BRepClass_FaceExplorer::RejectEdge | ( | const gp_Lin2d & | L, |
const Standard_Real | Par | ||
) | const |
Returns True if the edge bounding volume does not intersect the segment.
Standard_Boolean BRepClass_FaceExplorer::RejectWire | ( | const gp_Lin2d & | L, |
const Standard_Real | Par | ||
) | const |
Returns True if the wire bounding volume does not intersect the segment.
Standard_Boolean BRepClass_FaceExplorer::Segment | ( | const gp_Pnt2d & | P, |
gp_Lin2d & | L, | ||
Standard_Real & | Par | ||
) |
Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections.
|
inline |
Sets the maximum tolerance at which to start checking in the intersector.
|
inline |
Sets the status of whether we are using boxes or not.
|
inline |
Returns true if we are using boxes in the intersector.