java.lang.Object
com.luciad.view.lightspeed.geometry.discretization.ALsp3DMesh
All Implemented Interfaces:
ILcdBounded
Direct Known Subclasses:
ALspEditable3DMesh

public abstract class ALsp3DMesh extends Object implements ILcdBounded
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 Details

    • ALsp3DMesh

      public ALsp3DMesh()
      Creates a new ALsp3DMesh 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

      public abstract void getPositionSFCT(int aIndex, ILcd3DEditablePoint aPositionSFCT)
      Retrieves the position of the specified vertex.
      Parameters:
      aIndex - the index of the vertex to be retrieved
      aPositionSFCT - 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

      public abstract ALsp3DPrimitive getPrimitive(int aIndex)
      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

      public void getTextureCoordinate(int aIndex, ILcd2DEditablePoint aTextureCoordinateSFCT)
      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