#393 New object class for polygons

closed-accepted
Ethan Merritt
None
5
2008-09-24
2008-07-30
Ethan Merritt
No

This patchset adds a new object type "polygon". The handling is essentially the same as for the existing object classes "rectangle", "circle", and "ellipse".
Syntax:
set object <n> polygon from x0,y0 {,z0}
to x1,y1 {,z1}
...
to xn,yn {,zn}

Screen, graph, and axis coordinates are allowed. 3D polygons are handled, but the filled area is determined by a projection of the vertices onto the view plane. Thus only planar polygons are rendered correctly, and even these are ignored by the hidden3d code.

Discussion

  • Petr Mikulik
    Petr Mikulik
    2008-08-18

    Logged In: YES
    user_id=31505
    Originator: NO

    This patch is very useful.
    Please add "rto" keyword for relative placement of corners.

     
  • Ethan Merritt
    Ethan Merritt
    2008-08-19

    Logged In: YES
    user_id=235620
    Originator: YES

    Add "rto" option for relative placement of vertices.
    Fix bug in save format.

    File Added: polygons_19aug2008.patch

     
  • Ethan Merritt
    Ethan Merritt
    2008-09-22

    Updated to current CVS.

    Filled polygon clipping problems were traced to strangeness in the existing routine clip_line(). With this fixed, everything looks good. This version will probably go into CVS unless some new problem turns up.
    File Added: polygons_20sep2008.patch

     
  • Ethan Merritt
    Ethan Merritt
    2008-09-22

    New object type: polygon

     
  • Ethan Merritt
    Ethan Merritt
    2008-09-24

    • status: open --> closed-accepted
     
  • Ethan Merritt
    Ethan Merritt
    2008-09-24

    Now in cvs