Figure 8.5 The Cylinder Primitive int BODY
Figure 8.5 The Cylinder Primitive int BODY = 0; int TOP = 1; int BOTTOM = 2; The default number of surfaces created for the body is 15along the X-axis and 1along the Y-axis, the disks are created as 15-sided polygons. Again, use the most complex form of the constructor to vary the number of surfaces generated for the cylinder: public Cylinder(float radius, float height, int primflags, int xdivision, int ydivision, Appearance ap) { 8.2.4 Sphere 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.Sphere The Sphere Primitivedefines a sphere with 15 divisions in both the X- and Y-axes, illustrated in figures 8.6 through 8.8. Use the most customizable form of the constructor to vary the number of surfaces created for the Sphere: public Sphere(float radius, int primflags, int divisions, Appearance ap) Figure 8.6 114
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost JSP Web Hosting services