java.lang.Object
com.marginallyclever.ro3.mesh.proceduralmesh.ProceduralMeshFactory

public class ProceduralMeshFactory extends Object

Factory for procedural meshes.

  • Constructor Details

    • ProceduralMeshFactory

      public ProceduralMeshFactory()
  • Method Details

    • getListOfProceduralMeshes

      public static String[] getListOfProceduralMeshes()
      Returns:
      the list of meshes that extend ProceduralMesh.
    • createMesh

      public static ProceduralMesh createMesh(String shapeName)
      Create a mesh for the given shape name.
      Parameters:
      shapeName - the name of the shape to create.
      Returns:
      a new mesh or null if the shape name is not found.
    • createPanel

      public static JPanel createPanel(ProceduralMesh mesh)
      Parameters:
      mesh - the ProceduralMesh to create a panel for.
      Returns:
      the settings panel for the given ProceduralMesh or null.