occt: master 758bacbb

Author Committer Branch Timestamp Parent
azv bugmaster master 2016-07-18 06:33:53 master ce0594b8
Changeset 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
mod - src/ProjLib/ProjLib_Cylinder.cxx Diff File
mod - src/ProjLib/ProjLib_ProjectedCurve.cxx Diff File
add - tests/bugs/modalg_6/bug27677 Diff File