<HTML>
<A NAME="pagetop"></A>
<BASEFONT SIZE="3">
<HEAD>
<TITLE>
Sphere
</TITLE>
</HEAD>
<BODY BGCOLOR="white" TEXT="black">
<CENTER>
<A HREF="../../index.htm" target="_top"><IMAGE SRC="../../image/mokuji.gif"></A>
</CENTER>
<H3>
Sphere
</H3>
<HR SIZE="1">
Creates spheres. The sphere is defined by the coordinates of its center and 
radius. The format is different based on whether color is defined or not. 
To differentiate the formats, the center data type is specified in the 
third line. There are two center data types: vertex and color.
<P>
<FONT COLOR="blue">
vertex
</FONT><BR>
The X, Y and Z coordinates and the radius of the sphere are specified. 
<P>
<BLOCKQUOTE>
<B>Format</B>
<CENTER>
<TABLE BORDER>
           # Micro AVS Geom:2.10<BR>
	   sphere<BR>
	   Primitive Name<BR>
	   vertex<BR>
	   n(number of spheres)<BR>
	   X(1) Y(1) X(1) radius(1) <BR>
	   X(2) Y(2) X(2) radius(2) <BR>
                            .<BR>
                            .<BR>
                            .<BR>
	   X(n) Y(n) X(n) radius(n)<BR> 
</TABLE>
</CENTER>
</BLOCKQUOTE>
<FONT COLOR="blue">
color
</FONT><BR>
The X, Y and Z coordinates, the radius and the R, G, B color values of the 
sphere are specified. 
<P>
<BLOCKQUOTE>
<B>Format</B>
<CENTER>
<TABLE BORDER>
           # Micro AVS Geom:2.10<BR>
	   sphere<BR>
	   Primitive Name<BR>
	   color<BR>
	   n(number of spheres)<BR>
	   X(1) Y(1) X(1) radius(1) R(1) G(1) B(1)<BR>
	   X(2) Y(2) X(2) radius(2) R(2) G(2) B(2)<BR>
                            .<BR>
                            .<BR>
                            .<BR>
	   X(n) Y(n) X(n) radius(n) R(n) G(n) B(n)<BR>
</TABLE>
</CENTER>
<P>
<B><U>Example : 3 spheres (sphere.mgf)</U></B>
<P>
           # Micro AVS Geom:2.10<BR>
           sphere<BR>
           sphere_sample<BR>
           color<BR>
           3<BR>
           0.0  0.0  0.0  0.2  1.0  0.0  0.0<BR>
           0.5  0.0  0.0  0.3  0.0  1.0  0.0<BR>
           0.0  0.5  0.0  0.4  0.0  0.0  1.0 <BR>
</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-2008 <A HREF="http://www.kgt.co.jp/index_e.html">KGT Inc.</A>
 All rights reserved.</FONT></TD>
</TR></TABLE>
</BODY>
</HTML>
