com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class Primitive

    • Constructor Detail

      • Primitive

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

      • merge

        protected static ArrayList<int[]> merge(Mesh mesh,
                                                Vector4[][] positions,
                                                Vector4[][] normals,
                                                Vector2[][] uvs)
        Merge the specified mesh, positions, normals and uvs.
        Parameters:
        mesh - Mesh.
        positions - Positions.
        normals - Normals.
        uvs - Uvs.
      • setup

        protected static void setup(Mesh mesh,
                                    Vector4[] positions,
                                    Vector4[] normals,
                                    Vector4[] uvs)
        Build the mesh from given positions/normals/uvs.
        Parameters:
        mesh - Mesh.
        positions - Positions.
        normals - Normals.
        uvs - Uvs.
      • toMesh

        public abstract Mesh toMesh()
        Convert current object to mesh
        Specified by:
        toMesh in interface IMeshConvertible
        Returns:
        The mesh.