|
Home | Developers | Help | Google Group | Contact Us
Header:
| TYPE |
NAME |
DESCRIPTION |
| int |
version |
currently only a value of "1" is valid |
| int |
vertexCount |
the number of vertices |
| int |
faceCount |
the number of faces (triangles) |
| int |
colorCount |
the number of ARGB colors |
| int |
faceColorCount |
a redundant value, also the number of faces (triangles) |
Data:
| TYPE |
NAME |
DESCRIPTION |
| float[vertexCount * 3] |
vertices |
list of vertices, each vertex has 3 float values for x, y, and z
for vertex i: x = vertices[i*3 + 0]; y = vertices[i*3 + 1]; z = vertices[i*3 + 2];
|
| short[faceCount * 3] |
faces |
list of faces, each face has 3 index values that point to the "vertices" list
for face i: vertex1Index = faces[i*3 + 0]; vertex2Index = faces[i*3 + 1]; vertex3Index = faces[i*3 + 2];
|
| int[colorCount] |
colors |
list of all ARGB colors |
| short[faceColorCount] |
faceColors |
list specifying the color for each face, the value is an index pointing to the "colors" list
for the color of face i: colorARGB = colors[i]; |
Example use:
The example below is a simple java application that opens a GAMA3D file a displays it as a wireframe.
Web site and all contents © Copyright Gamaray Ltd. 2009, All rights reserved.
| |