public class RenderObjectFactory
extends java.lang.Object
Constructor and Description |
---|
RenderObjectFactory() |
Modifier and Type | Method and Description |
---|---|
static RenderObject |
createAxes(boolean x,
boolean y,
boolean z)
Creates a simple set of axes
|
static RenderObject |
createCone(int nSlices,
boolean capped)
Creates a unit cone along the z-axis
|
static RenderObject |
createCylinder(int nSlices,
boolean capped)
Creates a unit cylinder along the z-axis
|
static RenderObject |
createFromMesh(PolygonalMesh mesh,
boolean flatNormals,
boolean addEdges)
Creates a RenderObject from a PolygonalMesh, with one group of triangle
primitives for faces.
|
static RenderObject |
createOctohedralSphere(int divisions) |
static RenderObject |
createSphere(int nSlices,
int nLevels)
Creates a unit sphere centered at the origin
|
static RenderObject |
createSpindle(int nSlices,
int nLevels)
Creates a unit spindle along the z-axis
|
public static RenderObject createFromMesh(PolygonalMesh mesh, boolean flatNormals, boolean addEdges)
mesh
- mesh for which the render object is to be createdflatNormals
- use "flat" shading normalsaddEdges
- add edge primitivespublic static RenderObject createCylinder(int nSlices, boolean capped)
nSlices
- angular resolutioncapped
- include top/bottom capspublic static RenderObject createCone(int nSlices, boolean capped)
nSlices
- angular resolutioncapped
- include top/bottom capspublic static RenderObject createSpindle(int nSlices, int nLevels)
nSlices
- angular resolution (longitude)nLevels
- vertical resolution (latitude)public static RenderObject createOctohedralSphere(int divisions)
public static RenderObject createSphere(int nSlices, int nLevels)
nSlices
- angular resolution (longitude)nLevels
- vertical resolution (latitude)public static RenderObject createAxes(boolean x, boolean y, boolean z)
x
- to include x?y
- to include y?z
- to include z?