com.aspose.threed

Interfaces

Classes

Enums

Exceptions

Class Mesh

    • Constructor Detail

      • Mesh

        public Mesh()
        Initializes a new instance of the Mesh class.
      • Mesh

        public Mesh(String name)
        Initializes a new instance of the Mesh class.
        Parameters:
        name - Name.
    • Method Detail

      • getEdges

        public List<Integer> getEdges()
        Gets edges of the Mesh. Edge is optional in mesh, so it can be empty.
      • getPolygonSize

        public int getPolygonSize(int index)
        Gets the vertex count of the specified polygon.
        Parameters:
        index - Index.
        Returns:
        The polygon size.
      • getPolygonCount

        public int getPolygonCount()
        Gets the count of polygons
      • getPolygons

        public List<int[]> getPolygons()
        Gets the polygons definition of the mesh
      • createPolygon

        public void createPolygon(int[] indices)
        Creates a new polygon with all vertices defined in indices. To create polygon vertex by vertex, please use PolygonBuilder.
        Parameters:
        indices - Array of the polygon indices, each index points to a control point that forms the polygon.
      • toMesh

        public Mesh toMesh()
        Gets the Mesh instance from current entity.
        Specified by:
        toMesh in interface IMeshConvertible
        Returns:
        The mesh.
      • iterator

        public Iterator<int[]> iterator()
        Gets the enumerator for each inner polygons.
        Specified by:
        iterator in interface Iterable<int[]>
        Returns:
        The enumerator.