Class GeometryUtils


  • public class GeometryUtils
    extends java.lang.Object
    Utility 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.Node createCoordinateAxes()
      Creates a node with 3 arrows that represent the coordinate axes.
      static com.jme3.scene.Geometry createGeometry​(com.jme3.scene.Mesh mesh, com.jme3.math.ColorRGBA color, boolean lit)
      Creates a Geometry of the given color.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeometryUtils

        public GeometryUtils()
    • Method Detail

      • createGeometry

        public static com.jme3.scene.Geometry createGeometry​(com.jme3.scene.Mesh mesh,
                                                             com.jme3.math.ColorRGBA color,
                                                             boolean lit)
        Creates a Geometry of the given color.
        Parameters:
        mesh - of the geometry
        color - of the material
        lit - 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