Java Programing

March 31, 2007

//enable lighting and assign material m.setLightingEnable(true); ap.setMaterial(m); //render

Filed under: Java 3D Programming — webmaster @ 5:14 am

Figure 8.3 The Cone Primitive (low resolution) Figure 8.4 The Cone Primitive (high resolution) By default, 15 surfaces are generated for the sides of the Cone. This can be increased or decreased by using the most customizable constructor: public Cone(float radius, float height, int primflags, int xdivision, int ydivision, Appearance ap) The geometry for the Coneconsists of a Cylindertapering 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 Cylinderand aligned to close the open end of the Cylinder. 8.2.3 Cylinder java.lang.Object | +–javax.media.j3d.SceneGraphObject | +–javax.media.j3d.Node | +–javax.media.j3d.Group | +–com.sun.j3d.utils.geometry.Primitive | +–com.sun.j3d.utils.geometry.Cylinder The Cylinder Primitivedefines a capped cylinder, illustrated in figure 8.5. Cylinderis composed from three Shape3Dcomponents: Body, Topdisk, and Bottomdisk. 113

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Tomcat Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting