From: Michael Kipper <mkipper@ro...> - 2005-06-19 03:07:57
I'm new to gnuplot, as I've decided to go the open-source route, instead of
the Matlab route. So I figured I would ask the expert users how to go about
accomplishing my goal, rather than inventing myself the solution.
I have written some software to solve a problem, that creates a Delaunay
triangulated mesh of points in 3-dimensions, at specified intervals.
The intention is to use gnuplot to create an animated GIF of the mesh as it
steps through time. Hopefully, gnuplot will recognize when a triangle in
the foreground blocks one in the back, so I don't end up with a screen full
Having written the software myself, I can output the data however I like,
but cannot really figure out an efficient way to convey my data to gnuplot
to accomplish the goal.
Is there a "good" way to do this, or a tutorial somewhere I can read?
Thanks for your help and info,
Michael Kipper wrote:
> The intention is to use gnuplot to create an animated GIF of the mesh as it
> steps through time. Hopefully, gnuplot will recognize when a triangle in
> the foreground blocks one in the back, so I don't end up with a screen full
> of points.
Not without some hand-holding from your side. gnuplot doesn't specially
support triangles --- it expects surfaces to be parametric ones, even if
they come in a datafile. To that end, it wants surfaces to have "grid
structure", i.e. they should come as <n> sequences of <m> points, so
gnuplot can construct a surface mesh of regular rectangular topology.
The only way to represent single triangles in this approach is as
quadrangles with one zero-length edge.
Generally, I'm not convinced gnuplot is the right tool for this job.
It's not designed to be a generic 3D vector graphic rendering engine.
Other tools, like Blender or PovRay, may be better fits for the job.
Get latest updates about Open Source Projects, Conferences and News.