Class DracoFormat


  • public class DracoFormat
    extends FileFormat
    Google Draco format
    • Method Detail

      • decode

        public Geometry decode​(java.lang.String fileName)
                        throws java.io.IOException
        Decode the point cloud or mesh from specified file name
        Parameters:
        fileName - The file name contains the drc file
        Returns:
        A Mesh or PointCloud instance depends on the file content
        Throws:
        java.io.IOException
      • encode

        public void encode​(Entity entity,
                           com.aspose.threed.Stream stream,
                           DracoSaveOptions options)
                    throws java.io.IOException
        Encode the entity to specified stream
        Parameters:
        entity - The entity to be encoded
        stream - The stream that encoded data will be written to
        options - Extra options for encoding the point cloud
        Throws:
        java.io.IOException
      • encode

        public void encode​(Entity entity,
                           com.aspose.threed.Stream stream)
                    throws java.io.IOException
        Encode the entity to specified stream
        Parameters:
        entity - The entity to be encoded
        stream - The stream that encoded data will be written to
        Throws:
        java.io.IOException
      • encode

        public void encode​(Entity entity,
                           java.lang.String fileName,
                           DracoSaveOptions options)
                    throws java.io.IOException
        Encode the entity to specified file
        Parameters:
        entity - The entity to be encoded
        fileName - The file name to be written
        options - Extra options for encoding the point cloud
        Throws:
        java.io.IOException
      • encode

        public void encode​(Entity entity,
                           java.lang.String fileName)
                    throws java.io.IOException
        Encode the entity to specified file
        Parameters:
        entity - The entity to be encoded
        fileName - The file name to be written
        Throws:
        java.io.IOException
      • encode

        public byte[] encode​(Entity entity,
                             DracoSaveOptions options)
        Encode the entity to Draco raw data
        Parameters:
        entity - The entity to be encoded
        options - Extra options for encoding the point cloud
        Returns:
        The encoded draco data represented in bytes
      • encode

        public byte[] encode​(Entity entity)
        Encode the entity to Draco raw data
        Parameters:
        entity - The entity to be encoded
        Returns:
        The encoded draco data represented in bytes