Class ProceduralMeshFactory
java.lang.Object
com.marginallyclever.ro3.mesh.proceduralmesh.ProceduralMeshFactory
Factory for procedural meshes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProceduralMesh
createMesh
(String shapeName) Create a mesh for the given shape name.static JPanel
createPanel
(ProceduralMesh mesh) static String[]
-
Constructor Details
-
ProceduralMeshFactory
public ProceduralMeshFactory()
-
-
Method Details
-
getListOfProceduralMeshes
- Returns:
- the list of meshes that extend
ProceduralMesh
.
-
createMesh
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
- Parameters:
mesh
- theProceduralMesh
to create a panel for.- Returns:
- the settings panel for the given
ProceduralMesh
or null.
-