Files
OCCT/src/BRepClass3d/FILES
isn 58e14d59e7 0027117: BRepClass3d_SolidClassifier doesn't take into account vertex/edge/face tolerances
Various improvements in point-solid classifier:

1) Refactoring.
2) BndBoxTree is extracted into separate class.
3) UB-tree calculation is cashed to improve point-solid classification speed.
4) Ray / curve intersection improved by trimmed parameters and correct order.
5) Fixes in logic.
6) Calculation caching at the classifier level.

3D-claasifier now takes into the account the vertex/edges tolerances. If the given point lays inside the tolerance area of vertex or edge of the solid it's classified as TopAbs_ON.
The behavior of IntCurvesFace_Intersector::Perform was changed. Now it may use optional null-tolerance to classify 2d-point relatively to the given face.
UBTreeFiller is used to speedup intersection process between edges/vertices and the point.
The test case 'boolean gdml_private ZH2' extensively uses the SolidClassifier. After this fix it returns the correct classification statuses, which leads to incorrect result shape (reported by checkshape). Yet the result shape without this fix also seems to be incorrect (one of the isolines goes out of boundary of the face). Thats why it's marked with 'TODO'.

Corrections in test cases.

Test case is added.
2016-04-08 11:50:38 +03:00

18 lines
507 B
Plaintext

BRepClass3d.cxx
BRepClass3d.hxx
BRepClass3d_BndBoxTree.hxx
BRepClass3d_BndBoxTree.cxx
BRepClass3d_DataMapIteratorOfMapOfInter.hxx
BRepClass3d_Intersector3d.cxx
BRepClass3d_Intersector3d.hxx
BRepClass3d_Intersector3d.lxx
BRepClass3d_MapOfInter.hxx
BRepClass3d_SClassifier.cxx
BRepClass3d_SClassifier.hxx
BRepClass3d_SolidClassifier.cxx
BRepClass3d_SolidClassifier.hxx
BRepClass3d_SolidExplorer.cxx
BRepClass3d_SolidExplorer.hxx
BRepClass3d_SolidPassiveClassifier.hxx
BRepClass3d_SolidPassiveClassifier_0.cxx