Hey guys,
Jean-S?bastien Guay wrote:
Robert Osfield wrote:
> It nice to have a .dot output, but... it does make one wonder about
> the possibility of actually rendering .dot as well... In testing I've
> been using dot to output a png file which I then view with osgviewer.
>
> What tools are you guys using for viewing .dot files?
Same as you, using dot to convert to png then using an image viewer.
Reading .dot files might be hard or introduce a dependency on graphviz,
not sure if that's really necessary...
If I read http://www.graphviz.org/pdf/libguide.pdf correctly it would be
possible to link against graphviz and instead of producing a .dot file
that needs to be fed through "dot", you could directly call the
layouting routine and create a .png file of the output using the API's
gvLayout (gvc, g, "dot");
gvRenderFilename (gvc, g, "png", "out.png");
Paul
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org