Package com.aspose.threed
Class PlyFormat
- java.lang.Object
-
- com.aspose.threed.FileFormat
-
- com.aspose.threed.PlyFormat
-
public class PlyFormat extends FileFormat
The PLY format.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.FileFormat
AMF, ASE, ASPOSE3D_WEB, COLLADA, DISCREET3DS, DRACO, DXF, FBX6100_BINARY, FBX6100ASCII, FBX7200_BINARY, FBX7200ASCII, FBX7300_BINARY, FBX7300ASCII, FBX7400_BINARY, FBX7400ASCII, FBX7500_BINARY, FBX7500ASCII, FBX7600_BINARY, FBX7600ASCII, FBX7700_BINARY, FBX7700ASCII, GLTF, GLTF_BINARY, GLTF2, GLTF2_BINARY, HTML5, MICROSOFT3MF, PCD, PCD_BINARY, PDF, PLY, RVM_BINARY, RVM_TEXT, SIEMENSJT8, SIEMENSJT9, STL_BINARY, STLASCII, UNIVERSAL3D, USD, USDZ, VRML, WAVEFRONTOBJ, X_BINARY, X_TEXT, XYZ, ZIP
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
decode(com.aspose.threed.Stream stream)
Decode a point cloud or mesh from the specified stream.Geometry
decode(com.aspose.threed.Stream stream, PlyLoadOptions opt)
Decode a point cloud or mesh from the specified stream.Geometry
decode(java.lang.String fileName)
Decode a point cloud or mesh from the specified stream.Geometry
decode(java.lang.String fileName, PlyLoadOptions opt)
Decode a point cloud or mesh from the specified stream.void
encode(Entity entity, com.aspose.threed.Stream stream)
Encode the entity and save the result into the stream.void
encode(Entity entity, com.aspose.threed.Stream stream, PlySaveOptions opt)
Encode the entity and save the result into the stream.void
encode(Entity entity, java.lang.String fileName)
Encode the entity and save the result into an external file.void
encode(Entity entity, java.lang.String fileName, PlySaveOptions opt)
Encode the entity and save the result into an external file.-
Methods inherited from class com.aspose.threed.FileFormat
createLoadOptions, createSaveOptions, detect, detect, getCanExport, getCanImport, getContentType, getExtension, getExtensions, getFileFormatType, getFormatByExtension, getVersion, toString
-
-
-
-
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 encodestream
- The stream to write to, this method will not close this streamopt
- 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 encodestream
- 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 encodefileName
- The file to write toopt
- 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 encodefileName
- 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 streamopt
- The load option of PLY format- Returns:
- A
Mesh
orPointCloud
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
orPointCloud
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 streamopt
- The load option of PLY format- Returns:
- A
Mesh
orPointCloud
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
orPointCloud
instance - Throws:
java.io.IOException
-
-