Package com.aspose.threed
Class DracoFormat
- java.lang.Object
-
- com.aspose.threed.FileFormat
-
- com.aspose.threed.DracoFormat
-
public class DracoFormat extends FileFormat
Google Draco 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(byte[] data)
Decode the point cloud or mesh from memory dataGeometry
decode(java.lang.String fileName)
Decode the point cloud or mesh from specified file namebyte[]
encode(Entity entity)
Encode the entity to Draco raw datavoid
encode(Entity entity, com.aspose.threed.Stream stream)
Encode the entity to specified streamvoid
encode(Entity entity, com.aspose.threed.Stream stream, DracoSaveOptions options)
Encode the entity to specified streambyte[]
encode(Entity entity, DracoSaveOptions options)
Encode the entity to Draco raw datavoid
encode(Entity entity, java.lang.String fileName)
Encode the entity to specified filevoid
encode(Entity entity, java.lang.String fileName, DracoSaveOptions options)
Encode the entity to specified file-
Methods inherited from class com.aspose.threed.FileFormat
createLoadOptions, createSaveOptions, detect, detect, getCanExport, getCanImport, getContentType, getExtension, getExtensions, getFileFormatType, getFormatByExtension, getVersion, toString
-
-
-
-
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
orPointCloud
instance depends on the file content - Throws:
java.io.IOException
-
decode
public Geometry decode(byte[] data) throws ImportException
Decode the point cloud or mesh from memory data- Parameters:
data
- The raw drc bytes- Returns:
- A
Mesh
orPointCloud
instance depends on the content - Throws:
ImportException
-
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 encodedstream
- The stream that encoded data will be written tooptions
- 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 encodedstream
- 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 encodedfileName
- The file name to be writtenoptions
- 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 encodedfileName
- 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 encodedoptions
- 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
-
-