Class ALsp3DMesh
java.lang.Object
com.luciad.view.lightspeed.geometry.discretization.ALsp3DMesh
- All Implemented Interfaces:
ILcdBounded
- Direct Known Subclasses:
ALspEditable3DMesh
A mesh consisting of vertices and primitives. Each vertex has an
associated position, queries with
getPositionSFCT(int, com.luciad.shape.shape3D.ILcd3DEditablePoint)
.
Optionally a texture coordinate is available for each vertex, which can be queried
via getTextureCoordinate(int, ILcd2DEditablePoint)
. To check if the mesh is textured use isTextured()
.- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
getPositionSFCT
(int aIndex, ILcd3DEditablePoint aPositionSFCT) Retrieves the position of the specified vertex.abstract ALsp3DPrimitive
getPrimitive
(int aIndex) Retrieves a primitive from this mesh.abstract int
Returns the number of primitives in this meshvoid
getTextureCoordinate
(int aIndex, ILcd2DEditablePoint aTextureCoordinateSFCT) Retrieves the texture coordinate for the vertex at the specified index.abstract int
Returns the number of vertices in this meshboolean
Returns whether or not this mesh is textured.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
-
ALsp3DMesh
public ALsp3DMesh()Creates a newALsp3DMesh
instance.
-
-
Method Details
-
getVertexCount
public abstract int getVertexCount()Returns the number of vertices in this mesh- Returns:
- the number of vertices in this mesh
-
getPositionSFCT
Retrieves the position of the specified vertex.- Parameters:
aIndex
- the index of the vertex to be retrievedaPositionSFCT
- the position of the vertex with specified index
-
getPrimitiveCount
public abstract int getPrimitiveCount()Returns the number of primitives in this mesh- Returns:
- the number of primitives in this mesh
- See Also:
-
getPrimitive
Retrieves a primitive from this mesh. A primitive can be a point, a line, a triangle, or any of the other types defined in TLcd3DPrimitiveType.- Parameters:
aIndex
- the index of the requested primitive- Returns:
- an ALsp3DPrimitive
- See Also:
-
isTextured
public boolean isTextured()Returns whether or not this mesh is textured.- Returns:
- whether or not this mesh is textured.
- Since:
- 2016.1
-
getTextureCoordinate
Retrieves the texture coordinate for the vertex at the specified index.- Parameters:
aIndex
- the index of the vertex for which to retrieve the texture coordinate.aTextureCoordinateSFCT
- the texture coordinate of the vertex at the specified index- Since:
- 2016.1
-