Class ALspEditable3DMesh
java.lang.Object
com.luciad.view.lightspeed.geometry.discretization.ALsp3DMesh
com.luciad.view.lightspeed.geometry.discretization.ALspEditable3DMesh
- All Implemented Interfaces:
ILcdBounded
An editable extension of
ALsp3DMesh
.- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract 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.Methods inherited from class com.luciad.view.lightspeed.geometry.discretization.ALsp3DMesh
getPositionSFCT, getPrimitive, getPrimitiveCount, getTextureCoordinate, getVertexCount, isTextured
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
-
Constructor Details
-
ALspEditable3DMesh
public ALspEditable3DMesh()Creates a newALspEditable3DMesh
instance.
-
-
Method Details
-
addVertices
public abstract int addVertices(int aNbVertices) Adds a specified number of vertices to this simple mesh.- Parameters:
aNbVertices
- the number of vertices to be added- Returns:
- the index of the first newly created point.
- Throws:
IllegalArgumentException
- whenaNbVertices
is smaller than or equal to 0
-
setPosition
Sets the vertex at the given index.- Parameters:
aIndex
- the indexaVertex
- the vertex
-
setPosition
public void setPosition(int aIndex, double aX, double aY, double aZ) Sets the vertex position at the given index.- Parameters:
aIndex
- the indexaX
- the x-coordinateaY
- the y-coordinateaZ
- the z-coordinate- Since:
- 2013.1
-
setTextureCoordinate
public void setTextureCoordinate(int aIndex, double aX, double aY) Sets the texture coordinate for the vertex at the given index. If the mesh is textured, a texture coordinate for each vertex must be provided.- Parameters:
aIndex
- the indexaX
- the x-coordinateaY
- the y-coordinate- Since:
- 2016.1
-
addPrimitive
Adds the given primitive to the mesh.- Parameters:
aPrimitive
- the primitive to be added to the mesh
-