<HTML>
<A NAME="pagetop"></A>
<BASEFONT SIZE="2">
<HEAD>
<TITLE>
MGF Format
</TITLE>
</HEAD>
<BODY BGCOLOR="white" TEXT="black">
<CENTER>
<A HREF="../../index.htm" target="_top"><IMAGE SRC="../../image/mokuji.gif"></A>
</CENTER>
<P>
<H2>
MGF Format
</H2>
<H4>
Synopsis
</H4>
<BLOCKQUOTE>
Shape data here denotes 3D geometry data.  The geometrical shape is
defined in terms of the connectivity of vertices and surfaces.  
In MicroAVS, meshes, polygons, lines, spheres, circles, 
columns and polytriangles are the primitives
available for creating geometrical shapes.
</BLOCKQUOTE>
<H4>
File Extension
</H4>
<BLOCKQUOTE>
The data file extension is ".mgf".
</BLOCKQUOTE>
<H4>
The simple step file format
</H4>
<BLOCKQUOTE>
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>
# Micro AVS Geom:2.10<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>
<P>
<BLOCKQUOTE>
<FONT COLOR="blue">
# Micro AVS Geom:2.10
</FONT><BR>
This is the header that identifies a shape data file and must be present
in the first line of the file. <BR>
Capitals, small letters and spaces must be defined precisely.
<P>
<FONT COLOR="blue">
Basic Primitive Type
</FONT><BR>
This name is defined uniquely for each primitive type. The types available
are mesh, polygon, sphere and line, circle, column and polytriangle. <P>
The names that identify these primitives are as given below:
<P>
<CENTER>
<TABLE BORDER>
<TR>
<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>
</BLOCKQUOTE>
<HR SIZE="1">
<H3>
The time-dependent file format (Multistep)
</H3><P>
<BLOCKQUOTE>
Lines beginning with # are comments and are ignored. Comments on every step can be inserted after the step number. 
you must specify the first step as step1, the second step as step2 and so on. 
</BLOCKQUOTE>
<BLOCKQUOTE>
# Micro AVS Geom:2.10<BR>
Number of steps<BR>
(Step Number) (comments)<BR>
Basic Primitive Type<BR>
Primitive Name<BR>
Data    <BR>
Data   <BR>
  .<BR>
  .<BR>
  .<BR>
(Step Number) (comments)<BR>
Basic Primitive Type<BR>
Primitive Name<BR>
Data <BR>
Data <BR>
  .<BR>
  .<BR>
  .<BR>
<P>
<P>
</BLOCKQUOTE>
<BLOCKQUOTE>
<FONT COLOR="blue">
#Micro AVS Geom:2.10
</FONT><BR>
Same means as simple step format. 
<P>
<FONT COLOR="blue">
Number of steps
</FONT><BR>
Defines the number of steps in the file. 
If this line isn't exist, the format is recognized as the simple step format. 
<P>
<FONT COLOR="blue">
Step number
</FONT><BR>
Specifies the step number at the begining of every step. 
For example, you must specify the first step as step1, the second step as step2 and so on. 
<P>
<FONT COLOR="blue">
Comments
</FONT><BR>
Comments(optional) Comments on every step can be inserted after the step number. 
<P>
<FONT COLOR="blue">
Basic Primitive Type
</FONT><BR>
Same means as simple step format. 
<P>
<FONT COLOR="blue">
Data
</FONT><BR>
Same means as simple step format. 
<P>
</BLOCKQUOTE>
<HR SIZE="1">
<H4>
Addendum
</H4>
<BLOCKQUOTE>
By repeating sets of Basic primitive type name, primitive name and data,
it is possible to describe data made up of multiple primitive types.
</BLOCKQUOTE>
<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-2011 <A HREF="http://www.cybernet.co.jp/english/">CYBERNET SYSTEMS CO.,LTD.</A>
 All rights reserved.</FONT></TD>
</TR></TABLE>
</BODY>
</HTML>
