public class DracoFormat extends 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
Modifier and Type | Method and Description |
---|---|
Geometry |
decode(byte[] data)
Decode the point cloud or mesh from memory data
|
Geometry |
decode(java.lang.String fileName)
Decode the point cloud or mesh from specified file name
|
byte[] |
encode(Entity entity)
Encode the entity to Draco raw data
|
byte[] |
encode(Entity entity,
DracoSaveOptions options)
Encode the entity to Draco raw data
|
void |
encode(Entity entity,
com.aspose.threed.Stream stream)
Encode the entity to specified stream
|
void |
encode(Entity entity,
com.aspose.threed.Stream stream,
DracoSaveOptions options)
Encode the entity to specified stream
|
void |
encode(Entity entity,
java.lang.String fileName)
Encode the entity to specified file
|
void |
encode(Entity entity,
java.lang.String fileName,
DracoSaveOptions options)
Encode the entity to specified file
|
createLoadOptions, createSaveOptions, detect, detect, getCanExport, getCanImport, getContentType, getExtension, getExtensions, getFileFormatType, getVersion, toString
public Geometry decode(java.lang.String fileName) throws java.io.IOException
fileName
- The file name contains the drc fileMesh
or PointCloud
instance depends on the file contentjava.io.IOException
public Geometry decode(byte[] data) throws ImportException
data
- The raw drc bytesMesh
or PointCloud
instance depends on the contentImportException
public void encode(Entity entity, com.aspose.threed.Stream stream, DracoSaveOptions options) throws java.io.IOException
entity
- The entity to be encodedstream
- The stream that encoded data will be written tooptions
- Extra options for encoding the point cloudjava.io.IOException
public void encode(Entity entity, com.aspose.threed.Stream stream) throws java.io.IOException
entity
- The entity to be encodedstream
- The stream that encoded data will be written tojava.io.IOException
public void encode(Entity entity, java.lang.String fileName, DracoSaveOptions options) throws java.io.IOException
entity
- The entity to be encodedfileName
- The file name to be writtenoptions
- Extra options for encoding the point cloudjava.io.IOException
public void encode(Entity entity, java.lang.String fileName) throws java.io.IOException
entity
- The entity to be encodedfileName
- The file name to be writtenjava.io.IOException
public byte[] encode(Entity entity, DracoSaveOptions options)
entity
- The entity to be encodedoptions
- Extra options for encoding the point cloudpublic byte[] encode(Entity entity)
entity
- The entity to be encoded