octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58429] Export of plotted circles to SVG could


From: Rik
Subject: [Octave-bug-tracker] [bug #58429] Export of plotted circles to SVG could use SVG circle primitive
Date: Sun, 24 May 2020 20:49:33 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #58429 (project octave):

                Category:                    None => Plotting with OpenGL   
                Priority:              5 - Normal => 3 - Low                
                 Release:                  6.0.90 => dev                    
                 Summary: SVG export could be better => Export of plotted
circles to SVG could use SVG circle primitive

    _______________________________________________________

Follow-up Comment #1:

Although seemingly simple, this would be difficult to implement.

Octave uses an external library, gl2ps, for printing which translates the
OpenGL commands rendered on the screen into one of a few formats including
SVG.  OpenGL itself has no circle primitive, so all onscreen implementations
approximate the circle with a polygon (filled) or polyline (unfilled) object. 
Thus, per the architecture of the implementation, everything is working
correctly as the onscreen representation has been exactly reproduced in the
output format.

If you were interested in working on this I would probably code some sort of
post-processor for the text svg that attempts to determine when a polygon is
actually representing a circle and then calculates the necessary parameters to
use an SVG circle primitive.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58429>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]