]> OCCT Git - occt-copy.git/commit
0027677: Incorrect CUT of a solid by semi-infinite solid
authorazv <azv@opencascade.com>
Mon, 18 Jul 2016 12:51:23 +0000 (15:51 +0300)
committerazv <azv@opencascade.com>
Mon, 18 Jul 2016 12:51:23 +0000 (15:51 +0300)
commit239550fbeddfd116801f0fdd5fa2ae3ad681a626
treeea873cfa975a2a3282db2338cad63e5502fdc928
parentf0afe22ee573f67689b99670162b863a02875262
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
src/ProjLib/ProjLib_Cylinder.cxx
src/ProjLib/ProjLib_ProjectedCurve.cxx