<HTML>
<A NAME="pagetop"></A>
<BASEFONT SIZE="3">
<HEAD>
<TITLE>
Line
</TITLE>
</HEAD>
<BODY BGCOLOR="white" TEXT="black">
<CENTER>
<A HREF="../../index.htm" target="_top"><IMAGE SRC="../../image/mokuji.gif"></A>
</CENTER>
<H3>
Line
</H3>
<HR SIZE="1">
Creates lines(segments). There are two types of formats to create segments. 
These correspond to the basic primitive types of disjoint line and polyline.
<P>
<FONT COLOR="blue">
disjont line
</FONT><BR>
This is one of the types to generate segments. The coordinates of the end points
 of the lines are defined. Each line is defined by two points.
<P>
<BLOCKQUOTE>
<B>Format</B>
<CENTER>
<TABLE BORDER>
           # Micro AVS Geom:2.10<BR>
	   disjoint line<BR>
	   Primitive Name<BR>
	   Vertex Data Type (vertex or color)<BR>
	   n (number of vertices)<BR>
	   data for vertex #1<BR>
	   data for vertex #2<BR>
              .<BR>
              .<BR>
              .<BR>
	   data for vertex #n<BR>
</TABLE>
</CENTER>
<BLOCKQUOTE>
The basic primitive type disjoint line is specified in the second line.<BR>
An arbitrary name is specified in the third line.<BR>
In the fourth line, the vertex data type is defined either as vertex or as 
color. When the vertex data type is vertex, only the X, Y and Z coordinates are 
specified for each vertex. When the vertex data type is color, the X, Y and Z 
coordinates as well as the R, G, B color values are specified for each vertex.<BR>
The total number of vertices is specified in the fifth line (total number of 
vertices = number of lines * 2).<BR>
The X, Y, Z coordinates of each vertex are  defined from the 6th line onwards.<BR>
</BLOCKQUOTE>

<B><U>Example: 4 independent lines (line.mgf)</U></B>
<P>
           # Micro AVS Geom:2.10<BR>
           disjoint line<BR>
           dline_sample<BR>
           color<BR>
           8<BR>
           0.0  0.0  0.0  1.0  0.0  0.0 <BR>
           1.0  0.0  0.0  1.0  0.0  0.0 <BR>
           1.0  0.0  0.0  0.5  0.5  0.0 <BR>
           1.0  1.0  0.0  0.5  0.5  0.0 <BR>
           1.0  1.0  0.0  0.0  1.0  0.0 <BR>
           0.0  1.0  0.0  0.0  1.0  0.0 <BR>
           0.0  1.0  0.0  0.0  0.5  0.5 <BR>
           0.0  0.0  0.0  0.0  0.5  0.5 <BR>
</BLOCKQUOTE>
<FONT COLOR="blue">
polyline
</FONT><BR>
This is one of the types to generate segments. A continuous line is drawn to 
connect all the vertices defined.
<P>
<BLOCKQUOTE>
<B>Format</B>
<CENTER>
<TABLE BORDER>
           # Micro AVS Geom:2.10<BR>
	   polyline<BR>
	   Primitive Name<BR>
	   Vertex Data Type (vertex or color)<BR>
           n (number of vertices)<BR>
	   data for vertex #1<BR>
	   data for vertex #2<BR>
              .<BR>
              .<BR>
              .<BR>
	   data for vertex #n<BR>
</TABLE>
</CENTER>
<BLOCKQUOTE>
The basic primitive type polyline is specified in the second line.<BR>
An arbitrary name is specified in the third line.<BR>
In the fourth line, the vertex data type is defined either as vertex or as 
color. When the vertex data type is vertex, only the X, Y and Z coordinates are 
specified for each vertex. When the vertex data type is color, the X, Y and Z 
coordinates as well as the R, G, B color values are specified for each vertex.<BR>
The total number of vertices is specified in the fifth line (total number of 
vertices = number of lines + 1).<BR>
The X, Y, Z coordinates of each vertex are  defined from the 6th line onwards.<BR>
</BLOCKQUOTE>
<P>
<B><U>Example: 4 continuous lines (polyline.mgf)</U></B>
<P>
           # Micro AVS Geom:2.10<BR>
           polyline<BR>
           pline_sample<BR>
           vertex<BR>
           5<BR>
           0.0   0.0   0.0 <BR>
           1.0   0.0   0.0 <BR>
           1.0   1.0   0.0 <BR>
           0.0   1.0   0.0 <BR>
           0.0   0.0   0.0 <BR>
</BLOCKQUOTE>
<HR SIZE="1">
<H3>
Examples of Shape Data Creation
</H3>
The sample files are located in directory in which MicroAVS is 
&ltinstalled_dir&gt/MicroAVS/DATA/MGF and can be referred to if necessary.
<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>
