HW2: Springs in Your Mesh
482/681, Dr. Lawlor
This is a multi-part homework:
The net result should be a spring system representing geometry you
designed! Tune the spring constant and damping to run smooth
- Build a model of any reasonably interesting, symmetrical 3D
shape. You can use any software package (I usually use
Blender or FreeCAD).
- Extract the 3D shape into a common file format. I
usually use Wavefront .obj file format for my own code, but
TetGen can directly read .ply or .stl. If needed, you can
convert formats using MeshLab.
- Open a command prompt and run TetGen
(precompiled Windows binary here)
to generate tetrahedra: tetgen -peqOB foo.ply
- Read the resulting files .node (XYZ coordinates) and .edge (pairs
of vertex numbers) into a spring system simulation. I
simple command line utility like awk, but you can use a
spreadsheet or any format conversion you like.
To save your PixAnvil simulation, hit the "Save" tab, select all the
text, and save it to a .html file using a plain text editor such as
Notepad. Turn in your updated .html simulation on
Blackboard (you'll need to log in first) by the due date of Wednesday,