com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class PlyFormat



  • public class PlyFormat
    extends FileFormat
    The PLY format.
    • Method Detail

      • encode

        public void encode(Entity entity,
                           com.aspose.threed.Stream stream,
                           PlySaveOptions opt)
                    throws java.io.IOException
        Encode the entity and save the result into the stream.
        Parameters:
        entity - The entity to encode
        stream - The stream to write to, this method will not close this stream
        opt - Save options
        Throws:
        java.io.IOException
      • encode

        public void encode(Entity entity,
                           com.aspose.threed.Stream stream)
                    throws java.io.IOException
        Encode the entity and save the result into the stream.
        Parameters:
        entity - The entity to encode
        stream - The stream to write to, this method will not close this stream
        Throws:
        java.io.IOException
      • encode

        public void encode(Entity entity,
                           java.lang.String fileName,
                           PlySaveOptions opt)
                    throws java.io.IOException
        Encode the entity and save the result into an external file.
        Parameters:
        entity - The entity to encode
        fileName - The file to write to
        opt - Save options
        Throws:
        java.io.IOException
      • encode

        public void encode(Entity entity,
                           java.lang.String fileName)
                    throws java.io.IOException
        Encode the entity and save the result into an external file.
        Parameters:
        entity - The entity to encode
        fileName - The file to write to
        Throws:
        java.io.IOException
      • decode

        public Geometry decode(java.lang.String fileName,
                               PlyLoadOptions opt)
                        throws java.io.IOException
        Decode a point cloud or mesh from the specified stream.
        Parameters:
        fileName - The input stream
        opt - The load option of PLY format
        Returns:
        A Mesh or PointCloud instance
        Throws:
        java.io.IOException
      • decode

        public Geometry decode(java.lang.String fileName)
                        throws java.io.IOException
        Decode a point cloud or mesh from the specified stream.
        Parameters:
        fileName - The input stream
        Returns:
        A Mesh or PointCloud instance
        Throws:
        java.io.IOException
      • decode

        public Geometry decode(com.aspose.threed.Stream stream,
                               PlyLoadOptions opt)
                        throws java.io.IOException
        Decode a point cloud or mesh from the specified stream.
        Parameters:
        stream - The input stream
        opt - The load option of PLY format
        Returns:
        A Mesh or PointCloud instance
        Throws:
        java.io.IOException
      • decode

        public Geometry decode(com.aspose.threed.Stream stream)
                        throws java.io.IOException
        Decode a point cloud or mesh from the specified stream.
        Parameters:
        stream - The input stream
        Returns:
        A Mesh or PointCloud instance
        Throws:
        java.io.IOException