public class Sphere extends ProceduralMesh

Sphere is a Mesh with a radius of 1. The origin is at the center of the sphere.

  • Field Details

    • detail

      public int detail
    • radius

      public float radius
  • Constructor Details

    • Sphere

      public Sphere()
    • Sphere

      public Sphere(float radius)
  • Method Details

    • getEnglishName

      public String getEnglishName()
      Specified by:
      getEnglishName in class ProceduralMesh
    • updateModel

      public void updateModel()
      Description copied from class: ProceduralMesh
      Procedurally generate a list of triangles and update the bounding box.
      Specified by:
      updateModel in class ProceduralMesh
    • setDetail

      public void setDetail(int v)
    • getDetail

      public double getDetail()
    • toJSON

      public org.json.JSONObject toJSON()
      Overrides:
      toJSON in class ProceduralMesh
    • fromJSON

      public void fromJSON(org.json.JSONObject jo)
      Overrides:
      fromJSON in class ProceduralMesh