Here are links to the data files used for the
Java-Based Tensegrity Viewer and the
Java3D-Based Tensegrity Viewer.
The meaning of each
line of text in a data file is determined by the first character on the
line. The first character is
either "#", "v" (stands for "vertex") or "l" (stands for "line").
Text lines starting with "#" are comments.
Text lines starting
with "v" are coordinate data for the points (a.k.a. vertices).
Cartesian x, y and z values are given in floating-point format.
After Tim Tyler kindly pointed out
that some of the vertex data was duplicated, I consolidated
the duplicates for the convenience of those applications
where it is necessary.
Text lines starting with "l" contain three integers indicating
how geometric lines connect the points and what type of member
the line represents: the first two integers are zero-based
indexes into the vertex array, and the third integer is a "type"
value. For tensegrities,
geometric lines where the type (mod 8) is 1 are struts.
The others are tendons.