com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class Primitive

    • Constructor Detail

      • Primitive

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

      • getCastShadows

        public boolean getCastShadows()
        Gets wheather this geometry can cast shadow
      • setCastShadows

        public void setCastShadows(boolean value)
        Sets wheather this geometry can cast shadow
        Parameters:
        value - New value
      • getReceiveShadows

        public boolean getReceiveShadows()
        Gets wheather this geometry can receive shadow.
      • setReceiveShadows

        public void setReceiveShadows(boolean value)
        Sets wheather this geometry can receive shadow.
        Parameters:
        value - New value
      • merge

        protected static java.util.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.
      • createEmptyMesh

        protected Mesh createEmptyMesh()
        Create an empty mesh object with inherited properties.
      • toMesh

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