Class ALspEditable3DMesh

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

public abstract class ALspEditable3DMesh extends ALsp3DMesh
An editable extension of ALsp3DMesh.
Since:
2012.0
  • Constructor Details

    • ALspEditable3DMesh

      public ALspEditable3DMesh()
      Creates a new ALspEditable3DMesh 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 - when aNbVertices is smaller than or equal to 0
    • setPosition

      public abstract void setPosition(int aIndex, ILcdPoint aVertex)
      Sets the vertex at the given index.
      Parameters:
      aIndex - the index
      aVertex - 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 index
      aX - the x-coordinate
      aY - the y-coordinate
      aZ - 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 index
      aX - the x-coordinate
      aY - the y-coordinate
      Since:
      2016.1
    • addPrimitive

      public abstract void addPrimitive(ALsp3DPrimitive aPrimitive)
      Adds the given primitive to the mesh.
      Parameters:
      aPrimitive - the primitive to be added to the mesh