Class LineModelBuilder.LineMesh

java.lang.Object
com.jozufozu.flywheel.lib.model.LineModelBuilder.LineMesh
All Implemented Interfaces:
Mesh
Enclosing class:
LineModelBuilder

public static class LineModelBuilder.LineMesh extends Object implements Mesh
  • Field Details

    • INDEX_SEQUENCE

      public static final IndexSequence INDEX_SEQUENCE
  • Constructor Details

    • LineMesh

      public LineMesh(int vertexCount, VertexView vertexView, MemoryBlock data, org.joml.Vector4f boundingSphere)
  • Method Details

    • vertexCount

      public int vertexCount()
      Specified by:
      vertexCount in interface Mesh
      Returns:
      The number of vertices this mesh has.
    • write

      public void write(MutableVertexList vertexList)
      Description copied from interface: Mesh
      Write this mesh into a vertex list. Vertices with index <0 or >=Mesh.vertexCount() will not be read or modified.
      Specified by:
      write in interface Mesh
      Parameters:
      vertexList - The vertex list to which data is written to.
    • indexSequence

      public IndexSequence indexSequence()
      Specified by:
      indexSequence in interface Mesh
    • indexCount

      public int indexCount()
      Specified by:
      indexCount in interface Mesh
    • boundingSphere

      public org.joml.Vector4fc boundingSphere()
      Description copied from interface: Mesh
      Get a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).
      Specified by:
      boundingSphere in interface Mesh
      Returns:
      A vec4 view.
    • delete

      public void delete()
      Description copied from interface: Mesh
      Free this mesh's resources, memory, etc.
      Specified by:
      delete in interface Mesh