<HTML>
<A NAME="pagetop"></A>
<BASEFONT SIZE="3">
<HEAD>
<TITLE>
Shape Data Format
</TITLE>
</HEAD>
<BODY BGCOLOR="white" TEXT="black">
<CENTER>
<A HREF="../../index.htm" target="_top"><IMAGE SRC="../../image/mokuji.gif"></A>
</CENTER>
<H3>
Shape Data Format
</H3>
<HR SIZE="1">
<H3>
Overview
</H3>
Shape data here denotes 3D geometry data.  The geometrical shape is defined in 
terms of the connectivity of vertices and surfaces.  In MicroAVS, polygons, 
lines, spheres and meshes are the primitives available for creating geometrical 
shapes.
<HR SIZE="1">
<H3>
File Extension
</H3>
The data file extension is ".mgf".
<HR SIZE="1">
<H3>
Format
</H3>
The format of shape data is composed of a header, basic primitive type, 
primitive name, and data. All the data is in ASCII and is separated using spaces, 
tabs or the code for blank lines. Empty lines can be inserted as and when required. 
Further, the lines need not be left-justified. 
<P>
<CENTER>
<TABLE BORDER>
# Micro AVS Geom:1.00<BR>
Basic Primitive Type<BR>
Primitive Name<BR>
Data    <BR>
Data   <BR>
  .<BR>
  .<BR>
  .<BR>
Basic Primitive Type<BR>
Primitive Name<BR>
Data <BR>
Data <BR>
  .<BR>
  .<BR>
  .<BR>
</TABLE>
</CENTER>
<P>
<BLOCKQUOTE>
<FONT COLOR="blue">
# Micro AVS Geom:1.00
</FONT><BR>
This is the header that identifies a shape data file and must be present in the 
first line of the file.    Indicates a space character. Further, capitals, small 
letters and spaces must be defined precisely.
<P>
<FONT COLOR="blue">
Basic Primitive Type Name
</FONT><BR>
This name is defined uniquely for each primitive type. The types available are 
mesh, polygon, sphere and line. 
<P>
The names that identify these primitives are as given below:
<P>
<CENTER>
<TABLE BORDER>
<TR ALIGN="center">
<TD><A HREF="mesh.htm">Mesh</A></TD><TD>mesh</TD>
</TR>
<TR>
<TD><A HREF="polygon.htm">Polygon</A></TD><TD>disjoint polygon or polyhedron</TD>
</TR>
<TR>
<TD><A HREF="sphere.htm">Sphere</A></TD><TD>sphere</TD>
</TR>
<TR>
<TD><A HREF="line.htm">Line</A></TD><TD>disjoint line or polyline</TD>
</TR>
<TR>
<TD><A HREF="circle.htm">Circle</A></TD><TD>circle</TD>
</TR>
<TR>
<TD><A HREF="column.htm">Column</A></TD><TD>column</TD>
</TR>
<TR>
<TD><A HREF="polytri.htm">Polytriangle</A></TD><TD>polytri</TD>
</TR>
<TR>
<TD><A HREF="label.htm">Label</A></TD><TD>label</TD>
</TR>
</TABLE>
</CENTER>
<P>
<FONT COLOR="blue">
Primitive name
</FONT><BR>
This refers to the name of the part. Define any name you want. However, the name
 should be within 30 characters and should not contain any spaces, tabs or return 
characters. Further, the primitive names cannot be duplicated.
<P>
<FONT COLOR="blue">
Data
</FONT><BR>
The format of this portion is different depending on the  basic primitive name.
</BLOCKQUOTE>
<HR SIZE="1">
<H3>
Addendum
</H3>
By repeating sets of Basic primitive type name, primitive name and data, it is 
possible to describe data made up of multiple primitive types.
<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; 1997-2008 <A HREF="http://www.kgt.co.jp/product/avs/index_e.html">KGT Inc.</A>
 All rights reserved.</FONT></TD>
</TR></TABLE>
</BODY>
</HTML>
