<HTML>
<A NAME="pagetop"></A>
<BASEFONT SIZE="3">
<HEAD>
<TITLE>
Mesh
</TITLE>
</HEAD>
<BODY BGCOLOR="white" TEXT="black">
<CENTER>
<A HREF="../../index.htm" target="_top"><IMAGE SRC="../../image/mokuji.gif"></A>
</CENTER>
<H3>
Mesh
</H3>
<HR SIZE="1">
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.
<BR>
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.
<P>
<FONT COLOR="blue">
scalar
</FONT><BR>
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.
<P>
<BLOCKQUOTE>
<B>Format</B>
<CENTER>
<TABLE BORDER>
 # Micro AVS Geom:2.10<BR>
 mesh<BR>
 Primitive Name<BR>
 scalar  <BR>
 m(num of node points) n(number of node points)<BR>
 Z(11) Z(21) ......... Z(m1)<BR>
 Z(12) Z(22) ......... Z(m2)<BR>
 ..........................<BR>
 Z(1n) Z(2n) ......... Z(mn)<BR>
</TABLE>
</CENTER>
<P>
<B><U>Example: mesh_scalar.mgf</U></B>
<P>
            # Micro AVS Geom:2.10<BR>
            mesh<BR>
            mesh_scalar_sample<BR>
            scalar<BR>
            3  3<BR>
            0.0   0.2  0.0<BR>
            0.2  -0.5  0.2<BR>
            0.0   0.2  0.0<BR>
</BLOCKQUOTE>
<P>
For details about Vertex, color, normal and normal_and_color, refer to 
the Users Guide.
<HR SIZE="1">
<TABLE BORDER=0 WIDTH="100%"><TR><TD ALIGN=LEFT>
<A HREF="#pagetop"><IMG SRC="../../image/pagetop.gif" ALT="UP"></A></TD><BR>
<TD ALIGN=RIGHT><FONT FACE="MS SANS SERIF" SIZE=1 COLOR="BLACK">
&copy; 1999-2008 <A HREF="http://www.kgt.co.jp/index_e.html">KGT Inc.</A>
 All rights reserved.</FONT></TD>
</TR></TABLE>
</BODY>
</HTML>
