Class BufferMesh.Vertices

    • Method Detail

      • mesh

        public Mesh mesh()
        Description copied from interface: Vertices
        The mesh to which the collection of vertices belongs.
        Specified by:
        mesh in interface Vertices
      • sizel

        public long sizel()
        Description copied from interface: Vertices
        Number of vertices in the collection as a long value.
        Specified by:
        sizel in interface Vertices
      • xf

        public float xf​(long vIndex)
        Description copied from interface: Vertices
        X position of a vertex, as a float.
        Specified by:
        xf in interface Vertices
      • yf

        public float yf​(long vIndex)
        Description copied from interface: Vertices
        Y position of a vertex, as a float.
        Specified by:
        yf in interface Vertices
      • zf

        public float zf​(long vIndex)
        Description copied from interface: Vertices
        Z position of a vertex, as a float.
        Specified by:
        zf in interface Vertices
      • nxf

        public float nxf​(long vIndex)
        Description copied from interface: Vertices
        X coordinate of vertex normal, as a float.
        Specified by:
        nxf in interface Vertices
      • nyf

        public float nyf​(long vIndex)
        Description copied from interface: Vertices
        Y coordinate of vertex normal, as a float.
        Specified by:
        nyf in interface Vertices
      • nzf

        public float nzf​(long vIndex)
        Description copied from interface: Vertices
        Z coordinate of vertex normal, as a float.
        Specified by:
        nzf in interface Vertices
      • uf

        public float uf​(long vIndex)
        Description copied from interface: Vertices
        U value of vertex texture coordinate, as a float.
        Specified by:
        uf in interface Vertices
      • vf

        public float vf​(long vIndex)
        Description copied from interface: Vertices
        V value of vertex texture coordinate, as a float.
        Specified by:
        vf in interface Vertices
      • addf

        public long addf​(float x,
                         float y,
                         float z,
                         float nx,
                         float ny,
                         float nz,
                         float u,
                         float v)
        Description copied from interface: Vertices
        Adds a vertex.
        Specified by:
        addf in interface Vertices
        Parameters:
        x - X position of the vertex.
        y - Y position of the vertex.
        z - Z position of the vertex.
        nx - X coordinate of the vertex's normal.
        ny - Y coordinate of the vertex's normal.
        nz - Z coordinate of the vertex's normal.
        u - U value of vertex texture coordinate.
        v - V value of vertex texture coordinate.
        Returns:
        Index of newly added vertex.
      • setf

        public void setf​(long vIndex,
                         float x,
                         float y,
                         float z,
                         float nx,
                         float ny,
                         float nz,
                         float u,
                         float v)
        Description copied from interface: Vertices
        Overwrites a vertex's position, normal and texture coordinates.
        Specified by:
        setf in interface Vertices
        Parameters:
        vIndex - Index of vertex to overwrite.
        x - X position of the vertex.
        y - Y position of the vertex.
        z - Z position of the vertex.
        nx - X coordinate of the vertex's normal.
        ny - Y coordinate of the vertex's normal.
        nz - Z coordinate of the vertex's normal.
        u - U value of vertex texture coordinate.
        v - V value of vertex texture coordinate.
      • setPositionf

        public void setPositionf​(long vIndex,
                                 float x,
                                 float y,
                                 float z)
        Description copied from interface: Vertices
        Overwrites a vertex's position.
        Specified by:
        setPositionf in interface Vertices
        Parameters:
        vIndex - Index of vertex to overwrite.
        x - X position of the vertex.
        y - Y position of the vertex.
        z - Z position of the vertex.
      • setNormalf

        public void setNormalf​(long vIndex,
                               float nx,
                               float ny,
                               float nz)
        Description copied from interface: Vertices
        Overwrites a vertex's normal.
        Specified by:
        setNormalf in interface Vertices
        Parameters:
        vIndex - Index of vertex to overwrite.
        nx - X coordinate of the vertex's normal.
        ny - Y coordinate of the vertex's normal.
        nz - Z coordinate of the vertex's normal.
      • setTexturef

        public void setTexturef​(long vIndex,
                                float u,
                                float v)
        Description copied from interface: Vertices
        Overwrites a vertex's texture coordinates.
        Specified by:
        setTexturef in interface Vertices
        Parameters:
        vIndex - Index of vertex to overwrite.
        u - U value of vertex texture coordinate.
        v - V value of vertex texture coordinate.