dojo.gfx 3D support kicks off

Web May 15th, 2007

dojo.gfx has aroused some buzz in the community, we are moving forward to the next step, 3D support in dojo.gfx library. Before any JavaScript coding, I would like to develop some utilities for verification and visualization.

The most convenient tool for 3D plotting in my humble opinion is gnuplot; it is free, and available in Linux, Windows and Mac OSX. Here is a simple example to plot the cube from (0, 0, 0) to (1,1,1):

gnuplot> set view 60, 30
gnuplot> splot “cube.plt” using 1:2:3 with lines

The default output is X11, you can even rotate the world coordination by using mouse to take a different view. And you may generate the PNG output for printing by setting up the terminal to png:

gnuplot> set terminal png
gnuplot> set output “cube.png”
gnuplot> splot “cube” using 1:2:3 with lines

Read the rest of this entry »