]> OCCT Git - occt-copy.git/commit
0028830: HalfSpace command chooses the wrong side of the given shell
authormsv <msv@opencascade.com>
Fri, 9 Jun 2017 07:46:34 +0000 (10:46 +0300)
committermsv <msv@opencascade.com>
Tue, 13 Jun 2017 12:11:28 +0000 (15:11 +0300)
commite69d9935986a752404f81938ed47821e32b5667f
treeee58bd7f794854ba4572a3a29fa30fe06b452bcc
parenta0ae8ca8a0a2bdb47419d798900459baafe2d54a
0028830: HalfSpace command chooses the wrong side of the given shell

Improve the algorithm BRepPrimAPI_MakeHalfSpace. Earlier it made projection of the point only on faces. If the nearest point does not conform to normal projection criterion the result is wrong. The fix includes search of projection on edges and vertices. This makes the algorithm robust for half spaces with boundaries.
src/BRepPrimAPI/BRepPrimAPI_MakeHalfSpace.cxx
tests/bugs/modalg_7/bug28830 [new file with mode: 0644]