Mesh

Mesh


The mesh type creates 2D cells. It is possible to create a bumpy surface by defining height data at the cell points (vertices). The format differs depending on the type of data assigned to the vertices.
To distinguish between the various types, the vertex data type is specified in the third line. The vertex data types available are scalar, vertex, color, normal, normal_and_color.

scalar
Only the height of each node point (the Z coordinate) is specified. The X and Y coordinates are not specified. The X and Y coordinates are automatically derived by taking the first value as 0 with intervals of length 1.

Format
# Micro AVS Geom:2.10
mesh
Primitive Name
scalar
m(num of node points) n(number of node points)
Z(11) Z(21) ......... Z(m1)
Z(12) Z(22) ......... Z(m2)
..........................
Z(1n) Z(2n) ......... Z(mn)

Example: mesh_scalar.mgf

# Micro AVS Geom:2.10
mesh
mesh_scalar_sample
scalar
3 3
0.0 0.2 0.0
0.2 -0.5 0.2
0.0 0.2 0.0

For details about Vertex, color, normal and normal_and_color, refer to the Users Guide.



UP © 1999-2008 KGT Inc. All rights reserved.