<HTML>
<BASEFONT SIZE="2">
<HEAD>
<TITLE>Column</TITLE>
</HEAD>
<BODY BGCOLOR="white" TEXT="black">
<CENTER>
<A HREF="../../index.htm" target="_top"><IMAGE SRC="../../image/mokuji.gif"></A>
</CENTER>
<P>
<H2>Column</H2>
Generates columns (cylinders). The column is defined by the coordinates 
of the center of its bottom base, radius, height, and direction. 
Also it is specified whether color is defined or not.
<P>
<B>Format</B>
<P>
           # Micro AVS Geom:2.10<BR>
           column<BR>
           Primitive Name<BR>
           Vertex Data Type (vertex or color)<BR>
           m (number of subdivisions)<BR>
           n (number of columns)<BR>
           direction(1) X(1) Y(1) Z(1) radius(1) height(1) (R(1) G(1) B(1))<BR>
           direction(2) X(2) Y(2) Z(2) radius(2) height(2) (R(2) G(2) B(2))<BR>
                               .<BR>
                               .<BR>
                               .<BR>
           direction(m) X(m) Y(n) Z(n) radius(n) height(n) (R(n) G(n) B(n))<BR>
<P>
<BLOCKQUOTE>
  The basic primitive type column 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 color, the R, G, B color         values are specified after direction, coordinates of the center of 
  the bottom base, radius, and height for each column.<BR>
  The number of the subdivisions of the column is specified in the
  fifth line. A cylinder is approximated as polygonal column. This 
  specified how many quadrilaterals are used for the side surface. 
  When it is lager, the cylinder is more real.<BR> 
  The direction, X, Y, Z coordinates of the center of the base, radius,
  height (and Red, Green, Blue color values) are defined from the 7th
  line onwards. The direction is specified from the following values.<BR>
  <BLOCKQUOTE>
        0: vertical to the X axis<BR>
        1: vertical to the Y axis<BR>
        2: vertical to the Z axis<BR>
  </BLOCKQUOTE>
</BLOCKQUOTE>
<P>
<B><U>Example: A column with color(column1.mgf)</U></B>
<P>
<PRE>
# Micro AVS Geom:2.10
column
column1
color
64
3
1 0.0 0.0 0.0 1.0 5.0 1.0 0.0 0.0
0 3.0 0.0 0.0 1.3 4.0 1.0 1.0 0.0
2 -3.0 0.0 0.0 0.8 7.0 1.0 0.0 1.0
</PRE>
<P>
<B><U>Example: A column without color(column2.mgf)</U></B>
<P>
<PRE>
# Micro AVS Geom:2.10
column
column2
vertex
64
3
0 -3.0 0.0 0.1 3.0 7.0
1 3.0 6.0 0.0 2.0 2.0
2 5.0 10.0 0.3 0.5 9.0
</PRE>
<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; 1998-2008 <A HREF="http://www.kgt.co.jp/index_e.html">KGT Inc.</A>
 All rights reserved.</FONT></TD>
</TR></TABLE>
</BODY>
</HTML>
