#9 rotated callout not displayed correctly in a rotstep

open
nobody
None
5
2013-01-13
2013-01-13
Esseger
No

Problem: if there is a rotstep, then rotated callouts are not displayed under the good angle.

Reason: the problem is that, if a rotstep is set, then two rotations are applied
instead of one, in drawPage() (in traverse.cpp).
More precisely, firt the submodel is rotated according to the rotstep, line 396 of traverse.cpp
Then, the rotstep is cleared (line 403), and the submodel is displayed (line 417). This applies
a second rotation, corresponding to the default view angle.

Solution: do not rotate the submodel according to the rotstep, and keep the rotstep for line 417.

File bug3.mpd is an example showing the bug
File bug3_patch.txt is a patch correcting the bug

Discussion

  • Esseger
    Esseger
    2013-01-13

    example showing the bug

     
    Attachments
  • Esseger
    Esseger
    2013-01-13

    patch

     
    Attachments