public abstract class ALspEditable3DMesh extends ALsp3DMesh
ALsp3DMesh
.Constructor and Description |
---|
ALspEditable3DMesh()
Creates a new
ALspEditable3DMesh instance. |
Modifier and Type | Method and Description |
---|---|
abstract void |
addPrimitive(ALsp3DPrimitive aPrimitive)
Adds the given primitive to the mesh.
|
abstract int |
addVertices(int aNbVertices)
Adds a specified number of vertices to this simple mesh.
|
void |
setPosition(int aIndex,
double aX,
double aY,
double aZ)
Sets the vertex position at the given index.
|
abstract void |
setPosition(int aIndex,
ILcdPoint aVertex)
Sets the vertex at the given index.
|
void |
setTextureCoordinate(int aIndex,
double aX,
double aY)
Sets the texture coordinate for the vertex at the given index.
|
getPositionSFCT, getPrimitive, getPrimitiveCount, getTextureCoordinate, getVertexCount, isTextured
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds
public ALspEditable3DMesh()
ALspEditable3DMesh
instance.public abstract int addVertices(int aNbVertices)
aNbVertices
- the number of vertices to be addedIllegalArgumentException
- when aNbVertices
is smaller than or equal to 0public abstract void setPosition(int aIndex, ILcdPoint aVertex)
aIndex
- the indexaVertex
- the vertexpublic void setPosition(int aIndex, double aX, double aY, double aZ)
aIndex
- the indexaX
- the x-coordinateaY
- the y-coordinateaZ
- the z-coordinatepublic void setTextureCoordinate(int aIndex, double aX, double aY)
aIndex
- the indexaX
- the x-coordinateaY
- the y-coordinatepublic abstract void addPrimitive(ALsp3DPrimitive aPrimitive)
aPrimitive
- the primitive to be added to the mesh