POV-Ray

The Persistence of Vision Raytracer (POV-Ray).

This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.

Attached to Project: POV-Ray
Opened by Mike H - 2009-11-06
Last edited by Christoph Lipka - 2010-03-29

FS#63 - Extend native support for 2D primitives

Improve native support for 2D primitives. Ideally a 1:1 mapping of SVG primitives/shapes. They go a long way to making diagrams look a lot better. Having to create image maps based on externally created bitmaps slows the workflow down a lot!

Closed by  Christoph Lipka
Monday, 29 March 2010, 02:14 GMT
Reason for closing:  Deferred
Additional comments about closing:  

No clarifying response from original requestor for many months

Admin
Christoph Lipka commented on Saturday, 07 November 2009, 15:32 GMT

This needs clarification: Is this a request for support of 2D primitives for texturing (you mention image maps), or rather for geometry (as in, 2D primitives extruded to 3D geometric shapes, aka prisms; this is the category you assigned it to)?

Grimbert Jérôme commented on Tuesday, 29 December 2009, 22:40 GMT

From http://www.w3c.nl/CourseSlides/2000/SVG_SMIL/SVG/svg1/slide16-0.htm

<rect x="0" y="0" rx="5" ry="5" width="40" height="20"/>

<circle cx="200" cy="200" r="100" />

<ellipse cx="200" cy="200" rx="100" ry="60" />

<polyline points="20,20 50,100 200,80 70,300" />

<polygon points="20,20 50,100 200,80 70,300" />

<line x1="10" y1="20" x2="15" y2="7" />

  • Rectangles can have rounded corners
  • Polygons have last point connected to first

circle = disc
ellipse = disc + scale
polygon = polygon !
rect = flat box, but rounded corners would be a bonus
line = flat box + rotate, but need a pen size!
polyline = sequence of flat box & connecting disc, also need a pen size

IMNSHO, forget the line/polyline unless you feel like displaying some splines.

Interesting primitive that remains: the rounded corner for rectangle (notice that the x & y radius are specified, but are applied to the 4 corners).

suggested naming:
rectangle { <x,y>,<w,h> [ <rx,ry> ] ... }
(like polygon ? implicit plane x0y ?)
or do we want a set of 3D vectors ?
rectangle { center_3D, width_vector, height_vector [ ,<rx,ry> ] ... }

As Patch_object, they won't be usable in CSG... as usual.

Thorsten Fröhlich commented on Wednesday, 24 March 2010, 14:54 GMT
Interesting primitive that remains: the rounded corner for rectangle

Isn't a rounded rectangle just a disc intersected with a rectangle (and possibly another disc) as CSG?

And a line size is the width of a rectangle?

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing