Sunday, January 8, 2012

Cone in Java 3d Programming

Cone defines a simple ConePrimitive with a radius and a height, illustrated in figures 8.3 and 8.4. It is a
capped cone centered at the origin with its central axis aligned along the Y−axis. The center of the Cone is
defined to be the center of its bounding box (rather than its centroid). If the GENERATE_TEXTURE_COORDS
flag is set, the texture coordinates are generated so that the texture gets mapped onto the Cone similarly to a
Cylinder, except without a top cap.
Cone consists of the following Shape3D objects:
ALIGN="JUSTIFY">int BODY = 0; •
"JUSTIFY">int CAP = 1;
The geometry for the Cone consists of a Cylinder tapering from the supplied radius at one end to zero
radius at the other end. A disk is created using the same number of divisions as the Cylinder and aligned to
close the open end of the Cylinder.
Running Codes
java.lang.Object
|
+−−javax.media.j3d.SceneGraphObject
|
+−−javax.media.j3d.Node
|
+−−javax.media.j3d.Group
|
+−−com.sun.j3d.utils.geometry.Primitive
public Cone(float radius, float height, int primflags,
int xdivision, int ydivision, Appearance ap) |
+−−com.sun.j3d.utils.geometry.Cone

http://download.java.net/media/java3d/javadoc/1.3.2/com/sun/j3d/utils/geometry/Cone.html

0 comments:

Post a Comment

Tu comentario será moderado la primera vez que lo hagas al igual que si incluyes enlaces. A partir de ahi no ser necesario si usas los mismos datos y mantienes la cordura. No se publicarán insultos, difamaciones o faltas de respeto hacia los lectores y comentaristas de este blog.