public class MeshCubes extends MeshBase
Any subset of a MxNx1 cuboid is possible. (repeated arbitrary number of times into Z-dir)
MAX_EFFECT_COMPONENTS
Constructor and Description |
---|
MeshCubes(int cols,
int rows,
int slices)
Creates a full, hole-less underlying mesh of vertices, normals, texture coords and colors.
|
MeshCubes(int cols,
int rows,
int slices,
Static4D front,
Static4D back,
Static4D left,
Static4D right,
Static4D top,
Static4D bottom)
Creates a full, hole-less underlying mesh of vertices, normals, texture coords and colors with
custom texture mappings.
|
MeshCubes(int cols,
java.lang.String desc,
int slices)
Creates the underlying mesh of vertices, normals, texture coords.
|
MeshCubes(int cols,
java.lang.String desc,
int slices,
Static4D front,
Static4D back,
Static4D left,
Static4D right,
Static4D top,
Static4D bottom)
Creates the underlying mesh of vertices, normals, texture coords with custom texture mappings.
|
MeshCubes(MeshCubes mesh,
boolean deep)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
MeshCubes |
copy(boolean deep)
Copy the Mesh.
|
addEmptyTexComponent, apply, apply, getMaxEffComponents, getShowNormals, getTextureMap, getUniforms, getUseCenters, markForDeletion, mergeEffComponents, mergeTexComponents, numEffComponents, numTexComponents, setComponentCenter, setEffectAssociation, setShowNormals, setTextureMap, setUseCenters, write
public MeshCubes(int cols, java.lang.String desc, int slices)
cols
- Integer helping to parse the next parameter.desc
- String describing the subset of a MxNx1 cuboid that we want to create.
Its MxN characters - all 0 or 1 - decide of appropriate field is taken or not.
For example, (cols=2, desc="111010", slices=1) describes the following shape: XX X X whereas (cols=2,desc="110001", slices=1) describes XX X
slices
- Number of slices, i.e. 'depth' of the Mesh.public MeshCubes(int cols, java.lang.String desc, int slices, Static4D front, Static4D back, Static4D left, Static4D right, Static4D top, Static4D bottom)
cols
- Integer helping to parse the next parameter.desc
- String describing the subset of a MxNx1 cuboid that we want to create.
Its MxN characters - all 0 or 1 - decide of appropriate field is taken or not.
For example, (cols=2, desc="111010", slices=1) describes the following shape: XX X X whereas (cols=2,desc="110001", slices=1) describes XX X
slices
- Number of slices, i.e. 'depth' of the Mesh.front
- Texture mapping the front side maps to.back
- Texture mapping the back side maps to.left
- Texture mapping the left side maps to.right
- Texture mapping the right side maps to.top
- Texture mapping the top side maps to.bottom
- Texture mapping the bottom side maps to.public MeshCubes(int cols, int rows, int slices)
cols
- Number of columns, i.e. 'width' of the Mesh.rows
- Number of rows, i.e. 'height' of the Mesh.slices
- Number of slices, i.e. 'depth' of the Mesh.public MeshCubes(int cols, int rows, int slices, Static4D front, Static4D back, Static4D left, Static4D right, Static4D top, Static4D bottom)
cols
- Number of columns, i.e. 'width' of the Mesh.rows
- Number of rows, i.e. 'height' of the Mesh.slices
- Number of slices, i.e. 'depth' of the Mesh.front
- Texture mapping the front side maps to.back
- Texture mapping the back side maps to.left
- Texture mapping the left side maps to.right
- Texture mapping the right side maps to.top
- Texture mapping the top side maps to.bottom
- Texture mapping the bottom side maps to.public MeshCubes(MeshCubes mesh, boolean deep)
public MeshCubes copy(boolean deep)