Tool class for detection of self-sections in the given shape. This class is based on BRepExtrema_OverlapTool and thus uses shape tessellation to detect incorrect mesh fragments (pairs of overlapped triangles belonging to different faces). Thus, a result depends critically on the quality of mesh generator (e.g., BREP mesh is not always a good choice, because it can contain gaps between adjacent face triangulations, which may not share vertices on common edge; thus false overlap can be detected). As a result, this tool can be used for relatively fast approximated test which provides sub-set of potentially overlapped faces.
More...
#include <BRepExtrema_SelfIntersection.hxx>
Tool class for detection of self-sections in the given shape. This class is based on BRepExtrema_OverlapTool and thus uses shape tessellation to detect incorrect mesh fragments (pairs of overlapped triangles belonging to different faces). Thus, a result depends critically on the quality of mesh generator (e.g., BREP mesh is not always a good choice, because it can contain gaps between adjacent face triangulations, which may not share vertices on common edge; thus false overlap can be detected). As a result, this tool can be used for relatively fast approximated test which provides sub-set of potentially overlapped faces.
◆ BRepExtrema_SelfIntersection() [1/2]
BRepExtrema_SelfIntersection::BRepExtrema_SelfIntersection |
( |
const Standard_Real |
theTolerance = 0.0 | ) |
|
Creates unitialized self-intersection tool.
◆ BRepExtrema_SelfIntersection() [2/2]
BRepExtrema_SelfIntersection::BRepExtrema_SelfIntersection |
( |
const TopoDS_Shape & |
theShape, |
|
|
const Standard_Real |
theTolerance = 0.0 |
|
) |
| |
Creates self-intersection tool for the given shape.
◆ ElementSet()
Returns set of all the face triangles of the shape.
◆ GetSubShape()
Returns sub-shape from the shape for the given index (started from 0).
◆ IsDone()
True if the detection is completed.
◆ isRegularSharedEdge()
Checks if the given triangles have only single common edge.
◆ isRegularSharedVertex()
Checks if the given triangles have only single common vertex.
◆ LoadShape()
Loads shape for detection of self-intersections.
◆ OverlapElements()
Returns set of IDs of overlapped sub-shapes (started from 0).
◆ Perform()
void BRepExtrema_SelfIntersection::Perform |
( |
| ) |
|
Performs detection of self-intersections.
◆ PreCheckElements()
◆ SetTolerance()
void BRepExtrema_SelfIntersection::SetTolerance |
( |
const Standard_Real |
theTolerance | ) |
|
|
inline |
Sets tolerance value used for self-intersection test.
◆ Tolerance()
Returns tolerance value used for self-intersection test.
The documentation for this class was generated from the following file: