Package com.rvandoosselaer.jmeutils.util
Class GeometryUtils
- java.lang.Object
-
- com.rvandoosselaer.jmeutils.util.GeometryUtils
-
public class GeometryUtils extends java.lang.ObjectUtility class for geometry objects.
-
-
Constructor Summary
Constructors Constructor Description GeometryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.jme3.scene.NodecreateCoordinateAxes()Creates a node with 3 arrows that represent the coordinate axes.static com.jme3.scene.GeometrycreateGeometry(com.jme3.scene.Mesh mesh, com.jme3.math.ColorRGBA color, boolean lit)Creates aGeometryof the given color.
-
-
-
Method Detail
-
createGeometry
public static com.jme3.scene.Geometry createGeometry(com.jme3.scene.Mesh mesh, com.jme3.math.ColorRGBA color, boolean lit)Creates aGeometryof the given color.- Parameters:
mesh- of the geometrycolor- of the materiallit- if this geometry requires a light source- Returns:
- the geometry
-
createCoordinateAxes
public static com.jme3.scene.Node createCoordinateAxes()
Creates a node with 3 arrows that represent the coordinate axes. Where the red arrow represents the X axis, the green arrow represents the Y axis and the blue arrow represents the Z axis.- Returns:
- the node holding the 3 arrows
-
-