Opened 7 years ago

Last modified 7 years ago

#729 new defect

printing circles and arcs is broken

Reported by: westram Owned by: devel
Priority: normal Milestone:
Component: no idea Version: SVN
Keywords: Cc:

Description

Status:

  1. clipping does not work:
    currently there's a hack in print-code, which does a box-clip and then
    • either prints a smaller circle/arc if more than 50% of surface is visible or
    • complete skips the circle/arc
  2. drawing partial arcs doesn't work properly (position/size is wrong; probably world/screen-coordinate confusion)
  3. drawing arcs with x-radius==0 or y-radius==0 fails assertions

Todo:

  1. clipping has to calculate the arc-segments remaining inside visible region and draw each segment separately
  2. fix
  3. shall fallback to line or dot

Attachments (2)

arced.patch (5.7 KB) - added by westram 7 years ago.
patch vs trunk @ 15376 (code discarded during impl. of #578)
dendro_CN_arched.fig (21.7 KB) - added by westram 7 years ago.
broken output

Download all attachments as: .zip

Change History (3)

comment:1 in reply to: ↑ description Changed 7 years ago by westram

Replying to description:

  1. drawing partial arcs doesn't work properly (position/size is wrong; probably world/screen-coordinate confusion)

Works for secondary structure (bond for character '~' uses arc).

See attachments for example of bug.

Changed 7 years ago by westram

patch vs trunk @ 15376 (code discarded during impl. of #578)

Changed 7 years ago by westram

broken output

Note: See TracTickets for help on using tickets.