I'm working on a project for school and I've got some 3D vector data as well as surface plots. These are saved in .dat
files outputted from a c++
program.
I'm able to plot these files in gnuplot
as wanted, but I'd really like to make .u3d
files so I can include them in a TeX document (using the movie15
package).
How do I create u3d files? (I'm working on mac).
You may use MeshLab, as it can import common 3D file formats, and exports U3D files.
From the main page:
Since that software can be used from command line to process files, the idea would be to generate a file using one of the formats it imports (for example, a X3D or PLY, both can be used to represent vector data and point sets) and let Meshlab convert it to U3D trough the command line.