DracoFormat

Overview

DracoFormat is a class in Aspose.3D FOSS for Java. Inherits from: FileFormat.

Google Draco format

Example: The following code shows how to encode and decode a Mesh to/from byte array:

          Mesh mesh = (new Sphere()).toMesh();
          //encode mesh

This class provides 25 methods for working with DracoFormat objects in Java programs. Available methods include: DracoFormat, FileFormat, canDetect, createLoadOptions, createSaveOptions, decode, detect, encode, getCanExport, getCanImport, getContentType, getExtension, and 7 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: AMF, ASE, ASPOSE3D_WEB, BLENDER, COLLADA, DISCREET3DS, and 53 more.

Properties

NameTypeAccessDescription
formatsList<FileFormat>ReadGets the formats.
versionVersionReadGets the version.
canImportbooleanReadGets the can import.
canExportbooleanReadGets the can export.
extensionStringReadGets the extension.
extensionsString[]ReadGets the extensions.
contentTypeFileContentTypeReadGets the content type.
fileFormatTypeFileFormatTypeReadGets the file format type.
FBX6100ASCIIFileFormatReadGets the fbx6100 ascii.
FBX6100_BINARYFileFormatReadGets the fbx6100 binary.
FBX7200ASCIIFileFormatReadGets the fbx7200 ascii.
FBX7200_BINARYFileFormatReadGets the fbx7200 binary.
FBX7300ASCIIFileFormatReadGets the fbx7300 ascii.
FBX7300_BINARYFileFormatReadGets the fbx7300 binary.
FBX7400ASCIIFileFormatReadGets the fbx7400 ascii.
FBX7400_BINARYFileFormatReadGets the fbx7400 binary.
FBX7500ASCIIFileFormatReadGets the fbx7500 ascii.
FBX7500_BINARYFileFormatReadGets the fbx7500 binary.
FBX7600ASCIIFileFormatReadGets the fbx7600 ascii.
FBX7600_BINARYFileFormatReadGets the fbx7600 binary.
FBX7700ASCIIFileFormatReadGets the fbx7700 ascii.
FBX7700_BINARYFileFormatReadGets the fbx7700 binary.
MAYAASCIIFileFormatReadGets the mayaascii.
MAYA_BINARYFileFormatReadGets the maya binary.
STL_BINARYFileFormatReadGets the stl binary.
STLASCIIFileFormatReadGets the stlascii.
WAVEFRONTOBJFileFormatReadGets the wavefrontobj.
DISCREET3DSFileFormatReadGets the discreet3 ds.
COLLADAFileFormatReadGets the collada.
UNIVERSAL3DFileFormatReadGets the universal3 d.
GLTFFileFormatReadGets the gltf.
GLTF2FileFormatReadGets the gltf2.
GLTF_BINARYFileFormatReadGets the gltf binary.
GLTF2_BINARYFileFormatReadGets the gltf2 binary.
PDFPdfFormatReadGets the pdf.
BLENDERFileFormatReadGets the blender.
DXFFileFormatReadGets the dxf.
PLYPlyFormatReadGets the ply.
X_BINARYFileFormatReadGets the x binary.
X_TEXTFileFormatReadGets the x text.
DRACODracoFormatReadGets the draco.
MICROSOFT3MFMicrosoft3MFFormatReadGets the microsoft3 mf.
RVM_TEXTRvmFormatReadGets the rvm text.
RVM_BINARYRvmFormatReadGets the rvm binary.
ASEFileFormatReadGets the ase.
IFCFileFormatReadGets the ifc.
SIEMENSJT8FileFormatReadGets the siemensjt8.
SIEMENSJT9FileFormatReadGets the siemensjt9.
AMFFileFormatReadGets the amf.
VRMLFileFormatReadGets the vrml.
ASPOSE3D_WEBFileFormatReadGets the aspose3d web.
HTML5FileFormatReadGets the html5.
ZIPFileFormatReadGets the zip.
USDFileFormatReadGets the usd.
USDAFileFormatReadGets the usda.
USDZFileFormatReadGets the usdz.
XYZFileFormatReadGets the xyz.
PCDFileFormatReadGets the pcd.
PCD_BINARYFileFormatReadGets the pcd binary.

Methods

SignatureDescription
DracoFormat()Constructs a new DracoFormat instance.
decode(fileName: String)GeometryNot implemented in the FOSS edition — throws at runtime. Decode the point cloud or mesh from specified file name.
decode(data: byte[])GeometryNot implemented in the FOSS edition — throws at runtime. Decode the point cloud or mesh from memory data.
encode(entity: Entity, stream: Stream, options: DracoSaveOptions)Not implemented in the FOSS edition — throws at runtime. Encode the entity to specified stream.
encode(entity: Entity, stream: Stream)Not implemented in the FOSS edition — throws at runtime. Encode the entity to specified stream.
encode(entity: Entity, fileName: String, options: DracoSaveOptions)Not implemented in the FOSS edition — throws at runtime. Encode the entity to specified file.
encode(entity: Entity, fileName: String)Not implemented in the FOSS edition — throws at runtime. Encode the entity to specified file.
encode(entity: Entity, options: DracoSaveOptions)byte[]Not implemented in the FOSS edition — throws at runtime. Encode the entity to Draco raw data.
encode(entity: Entity)byte[]Not implemented in the FOSS edition — throws at runtime. Encode the entity to Draco raw data.
FileFormat(type: FileFormatType, version: Version, contentType: FileContentType, extension: String, extensions: String[], canImport: boolean, canExport: boolean)Calls FileFormat(type, version, contentType, extension, extensions, canImport, canExport) on this DracoFormat instance.
getFormats()List<FileFormat>Returns the formats.
getVersion()VersionReturns the version.
getFormatByExtension(filePath: String)FileFormatCalls getFormatByExtension(filePath) on this DracoFormat instance.
getCanImport()booleanReturns the can import.
getCanExport()booleanReturns the can export.
getExtension()StringReturns the extension.
getExtensions()String[]Returns the extensions.
getContentType()FileContentTypeReturns the content type.
getFileFormatType()FileFormatTypeReturns the file format type.
createLoadOptions()LoadOptionsCalls createLoadOptions on this DracoFormat instance.
createSaveOptions()SaveOptionsCalls createSaveOptions on this DracoFormat instance.
canDetect(stream: Stream, fileName: String)booleanCalls canDetect(stream, fileName) on this DracoFormat instance.
detect(stream: Stream, fileName: String)FileFormatCalls detect(stream, fileName) on this DracoFormat instance.
registerFormat(format: FileFormat)Calls registerFormat(format) on this DracoFormat instance.
toString()StringCalls toString on this DracoFormat instance.

See Also

 English