Package com.luciad.format.object3d
Interface ILcd3DMesh
- All Superinterfaces:
ILcdBounded
- All Known Subinterfaces:
ILcdStyled3DMesh
- All Known Implementing Classes:
TLcdOpenFlightDegreeOfFreedomNode
,TLcdOpenFlightGeometryNode
,TLcdOpenFlightGroupNode
,TLcdOpenFlightLevelOfDetailNode
,TLcdOpenFlightObjectNode
,TLcdOpenFlightSubFaceNode
An ILcd3DMesh represents a 3D geometric object. The 3D geometry is
represented as follows:
- vertices, normals, texture coordinates and vertex colors are stored in (conceptually) separate pools
- the object itself is built out of primitives (e.g. points, lines, triangles, fans, strips, ...)
- each primitive consists of one or more elements
- each element contains indices into each of the vertex attribute pools
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of colors in this meshvoid
getColorSFCT
(int aIndex, float[] aColorSFCT) Retrieves a vertex color from the pool.int
Returns the number of normal vectors in this meshvoid
getNormalSFCT
(int aIndex, ILcd3DEditablePoint aNormalSFCT) Retrieves a vertex normal from the pool.getPrimitive
(int aIndex) Retrieves a primitive from this mesh.int
Returns the number of primitives in this meshint
Returns the number of texture coordinates in this meshvoid
getTexCoordSFCT
(int aIndex, ILcd2DEditablePoint aTexCoordSFCT) Retrieves a pair of texture mapping coordinates from the pool.int
Returns the number of vertices in this meshvoid
getVertexSFCT
(int aIndex, ILcd3DEditablePoint aVertexSFCT) Retrieves a vertex position from the pool.Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
-
Method Details
-
getVertexCount
int getVertexCount()Returns the number of vertices in this mesh- Returns:
- the number of vertices in this mesh
- See Also:
-
getNormalCount
int getNormalCount()Returns the number of normal vectors in this mesh- Returns:
- the number of normal vectors in this mesh
- See Also:
-
getTexCoordCount
int getTexCoordCount()Returns the number of texture coordinates in this mesh- Returns:
- the number of texture coordinates in this mesh
- See Also:
-
getColorCount
int getColorCount()Returns the number of colors in this mesh- Returns:
- the number of colors in this mesh
- See Also:
-
getVertexSFCT
Retrieves a vertex position from the pool.- Parameters:
aIndex
- the index of the vertex to be retrievedaVertexSFCT
- an ILcd3DEditablePoint to receive the vertex coordinates
-
getNormalSFCT
Retrieves a vertex normal from the pool.- Parameters:
aIndex
- the index of the normal vector to be retrievedaNormalSFCT
- an ILcd3DEditablePoint to receive the normal vector coordinates
-
getTexCoordSFCT
Retrieves a pair of texture mapping coordinates from the pool.- Parameters:
aIndex
- the index of the texture coordinates to be retrievedaTexCoordSFCT
- an ILcd2DEditablePoint to receive the texture coordinates
-
getColorSFCT
void getColorSFCT(int aIndex, float[] aColorSFCT) Retrieves a vertex color from the pool.- Parameters:
aIndex
- the index of the color to be retrievedaColorSFCT
- a float array with a length of at least four, to receive the color components
-
getPrimitiveCount
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 ILcd3DPrimitive
- See Also:
-