]> OCCT Git - occt.git/commit
0027677: Incorrect CUT of a solid by semi-infinite solid
authorazv <azv@opencascade.com>
Mon, 18 Jul 2016 06:33:53 +0000 (09:33 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 21 Jul 2016 08:14:57 +0000 (11:14 +0300)
commit758bacbb66e82f570b0060586cc05e78458e7897
tree154be6abb25081bdc1cd2c380415e0b3e0204da9
parentce0594b85e59fd98bbcf034958fbbbab22052a95
0027677: Incorrect CUT of a solid by semi-infinite solid

The problem of incorrect CUT is wrong Pcurve after projection onto cylinder of a small edge orthogonal to cylinder's axis. The result of projection is a line along V direction, but it should be along U.

ProjLib_Cylinder has no specific functionality to build projection in most common case, so it should return "not done" flag to start projection based on curve approximation.

Following changes are done:
1. ProjLib_Cylinder returns isDone=false in the following cases:
  * the projected line is not parallel to cylinder's axis
  * the plane of projected circle is not orthogonal to cylinder's axis
2. Test case added

Minor correction of test case
src/ProjLib/ProjLib_Cylinder.cxx
src/ProjLib/ProjLib_ProjectedCurve.cxx
tests/bugs/modalg_6/bug27677 [new file with mode: 0644]