#1311 set object polygon gives incorrect results when corner near view plot edge

closed-duplicate
nobody
5
2015-03-23
2013-12-18
Ade
No

I have an object that is partly across the viewing area boundary. Rather than clipping the part of the object that is outside the viewing area, a different area is drawn across the whole viewing area:
set xrange [-0.72:0.72]
set yrange [-0.72:0.72]
set object 1 polygon from -0.72431850 , 0.21111970 to -0.72003382 , 0.22530005 to -0.72584313 , 0.22711780 to -0.73016238 , 0.21282303 to -0.72431850 , 0.21111970 fs solid fc rgb "gold"
plot 1

This is with Version 4.6 patchlevel 4 installed on OSX 10.8.4 using MacPorts. Attached is an eps file of what the incorrect output looks like.

Thanks.

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2013-12-18
    • status: open --> open-duplicate
     
  • Ethan Merritt

    Ethan Merritt - 2013-12-18

    Known/previously-reported bug - fixed in CVS for 4.7

    ChangeLog entry:

    2013-04-25 Christoph Bersch usenet@bersch.net
    * src/gadgets.c src/gadgets.h src/graphics.c src/term.c:
    Implement the Sutherland-Hodgman algorithm for clipping a general
    polygon against a rectangular bounding box. Apply this to clip
    polygon objects (including circles and ellipses) and arrowheads.

     
  • Ethan Merritt

    Ethan Merritt - 2014-01-10
    • status: open-duplicate --> closed-duplicate
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks