public class Grid extends ProceduralMesh

Grid is a Mesh displaying a grid on the XY plane. The origin is at the center of the grid.

  • Field Details

    • width

      public double width
    • length

      public double length
    • spacing

      public double spacing
  • Constructor Details

    • Grid

      public Grid()
  • Method Details

    • getEnglishName

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

      public void updateModel()
      Draw a grid of lines in the current color
      Specified by:
      updateModel in class ProceduralMesh
    • setWidth

      public void setWidth(int width)
    • setLength

      public void setLength(int length)
    • toJSON

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

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