vis
A data format used by the Glotzilla vis3d program. vis data contains information about the location of a particle as well as information vis3d needs to display it (its shape and color). vis data looks like this:
S 0 0.00197 0.083262 - S 0.353286 0.729204 0.182662 - S 0.184596 0.974434 1.0535 - S 0.908866 0.466356 1.66258 c 1.0 0.0 0.0 - S 1.86346 1.13612 1.11219 - ;
The S followed by 3 tab-delimited floats tells the visualizer to display a Sphere. The line following an S line contains color information for the visualizer. A '-' separates the data. A 'c' followed by 3 tab-delimited floats tells the visualizer to display the shape with the RGB values that correspond to the floats after the 'c'. If no RGB data is specified, the shape will be grey.
A semicolon instructs the visualizer that the end of the current data set has been reached. By piping many vis data sets to the visualizer, a simulator can animate and visualize the data being produced by a simulation.
Sphere Format
S\t PositionX \t PositionY \t PositionZ \n
t \t GroupId? \n
c\t Red \t Green \t Blue \n
r \t Radius \n
Box Format
B \t PositionX \t PositionY \t PositionZ \n
c \t Red \t Green \t Blue \n
r \t Rotation0 \t Rotation1 \t Rotation2 \t Rotation3 \n
q \t quaternion0 \t quaternion1 \t quaternion2 \t quaternion3 \n
t \t GroupId? \n
Wire Box
(the coordinates provided do nothing)
W \t 0 \t 0 \t 0 t
s \t vectorx \t vectory \t vectorz \n
Arrow
A \t beginx \t beginy \t beginz \t endx \t endy \t endz \n
c \t Red \t Green \t Blue \n
T \t thickness \n
t \t GroupId? \n
Line
L \t beginx \t beginy \t beginz \t endx \t endy \t endz \n
c \t Red \t Green \t Blue \n
Polygon
v \t vectorx \t vectory \t vectorz \n
c \t Red \t Green \t Blue \n
t \t GroupId? \n
Text
T \t PositionX \t PositionY \t PositionZ \n
c \t Red \t Green \t Blue \n
t \t GroupId? \n