Class BufferMesh.Triangles

    • Method Detail

      • mesh

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

        public long sizel()
        Description copied from interface: Triangles
        Number of triangles in the collection as a long value.
        Specified by:
        sizel in interface Triangles
      • vertex0

        public long vertex0​(long tIndex)
        Description copied from interface: Triangles
        Index of first vertex in a triangle.
        Specified by:
        vertex0 in interface Triangles
      • vertex1

        public long vertex1​(long tIndex)
        Description copied from interface: Triangles
        Index of second vertex in a triangle.
        Specified by:
        vertex1 in interface Triangles
      • vertex2

        public long vertex2​(long tIndex)
        Description copied from interface: Triangles
        Index of third vertex in a triangle.
        Specified by:
        vertex2 in interface Triangles
      • nxf

        public float nxf​(long tIndex)
        Description copied from interface: Triangles
        X coordinate of triangle's normal, as a float.
        Specified by:
        nxf in interface Triangles
      • nyf

        public float nyf​(long tIndex)
        Description copied from interface: Triangles
        Y coordinate of triangle's normal, as a float.
        Specified by:
        nyf in interface Triangles
      • nzf

        public float nzf​(long tIndex)
        Description copied from interface: Triangles
        Z coordinate of triangle's normal, as a float.
        Specified by:
        nzf in interface Triangles
      • addf

        public long addf​(long v0,
                         long v1,
                         long v2,
                         float nx,
                         float ny,
                         float nz)
        Description copied from interface: Triangles
        Adds a triangle to the mesh's triangles list.
        Specified by:
        addf in interface Triangles
        Parameters:
        v0 - Index of triangle's first vertex.
        v1 - Index of triangle's second vertex.
        v2 - Index of triangle's third vertex.
        nx - X coordinate of triangle's normal.
        ny - Y coordinate of triangle's normal.
        nz - Z coordinate of triangle's normal.
        Returns:
        Index of newly added triangle.