Package com.jme.scene.shape

Standard geometric shapes.

See:
          Description

Class Summary
AbstractBox An eight sided box.
Arrow A cylinder with a pyramid at one end.
AxisRods Three coloured arrows, one pointing along each axis.
Box A box with solid (filled) faces.
Capsule A capsule is a cylindrical section capped with a dome at either end.
Cone Deprecated. use Cylinder.
Cylinder A simple cylinder, defined by it's height and radius.
Disk A flat discus, defined by it's radius.
Dodecahedron A regular polyhedron with 12 faces.
Dome A hemisphere.
Extrusion An extrusion of a 2D object (Line) along a path (List of Vector3f).
GeoSphere A polygon mesh approximating a sphere by recursive subdivision.
GeoSphere.Triangle  
Hexagon Hexagon provides an extension of TriMesh.
Icosahedron A regular polyhedron with 20 faces.
MultiFaceBox The used Texture is 1 Unit wide and 8 Units high.
Octahedron A regular polyhedron with 8 faces.
OrientedBox Started Date: Aug 22, 2004

This primitive represents a box that has options to orient it acording to its X/Y/Z axis.
PQTorus A parameterized torus, also known as a pq torus.
Pyramid A four sided pyramid.
Quad A four sided, two dimensional shape (a quadrilateral).
RegularPolyhedron A polyhedron whose faces and edges are all identical.
RoundedBox  
Sphere Sphere represents a 3D object with all points equidistance from a center point.
StripBox A box made from a strip mode tri-mesh.
Teapot Teapot is the classical teapot model ready for you to use in jME! If you plan to texture this shape, use wrapmode WM_WRAP_S_WRAP_T.
Torus An ordinary (single holed) torus.
Tube  
 

Enum Summary
Sphere.TextureMode  
 

Package com.jme.scene.shape Description

Standard geometric shapes.

While it is possible to create arbitrary shapes using triangle meshes this can be tedious and unnecessary. This package contains a number of standard shapes that can be used that can be directly added to the scene graph, or combined to build up more complex shapes.

An important point to note about all of the shapes in this package is that once they have been created they calcuate all of the geometry required for their tri-mesh representation. This has a couple of implications:

  1. the property accessors represent the values that the shape was created with (or the values from the last update if it has been updated), there is no guarantee that the actual shape will not have been altered via other means such as calling the methods on TriMesh directly; and
  2. many of the shapes offer a single methods that sets multiple data values in one hit, for example Sphere provides the Sphere#updateGeometry(com.jme.math.Vector3f, int, int, float) method. If you are going to update more than one value it will be considerable more efficient to do so via these methods instead of the individual property mutators.

Version:
$Revision: 4131 $, $Date: 2009-03-19 20:15:28 +0000 (Thu, 19 Mar 2009) $
Author:
Ian Phillips