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:1.00
mesh
Primitive Name
scalar
m(number 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)

Z(1n)---Z(2n)-...-Z(mn)
  |       |         |
  .       .         .
  .       .         .
  .       .         .
  |       |         |
Z(12)---Z(22)-...-Z(m2)
  |       |         |
  |       |         |
  |       |         |
Z(11)---Z(21)-...-Z(m1)

Example: mesh_scalar.mgf

# Micro AVS Geom:1.00
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


MicroAVS Library
(C) 1999-2002 KGT Inc. All rights reserved.