Boost logo

Ublas :

From: John Maddock (john_at_[hidden])
Date: 2007-11-13 08:35:03


Dag Lindbo wrote:
>> I'm definitely interested, but can this output vector formats
>> (preferably SVG or PS/PDF)?
>
> Well, there is a class in VTK for writing (E)PS, PDF, and SVG files
> called vtkGL2PSExporter. However, it requires an external lib, gl2ps.
> I haven't gotten around to wrapping this like the PNGWriter. Sadly,
> given the state of the VTK documentation I foresee this being a bit
> tricky. http://www.vtk.org/doc/nightly/html/classvtkGL2PSExporter.html

If you're interested I got SVG/PDF export working for the contour plot and
the
3-D view. However, it results in huge files (1.5Mb for the SVG of the
contour example), and takes 30-minutes to render on my machine ! :-(

I think the latter issue is fixable: looks like a memory thrashing issue in
gl2ps.c, but given the file sizes I can't be bothered to look into right
now... instead I'll wait for Paul to finish off the SVGPlot code and try
and produce contour plots with that.

John.