DracoFormat

DracoFormat class

Google Draco format @hideconstructor

Methods

getVersion

NameDescription
getVersion()Gets file format version

Result:


getExtension

NameDescription
getExtension()Gets the extension name of this type.

Result:


getExtensions

NameDescription
getExtensions()Gets the extension names of this type.

Result:


getContentType

NameDescription
getContentType()Gets file format content type The value of the property is FileContentType integer constant.

Result:


getFileFormatType

NameDescription
getFileFormatType()Gets file format type

Result:


decode

NameDescription
decode(fileName)Decode the point cloud or mesh from specified file name

Parameters:

NameTypeDescription
fileNameStringThe file name contains the drc file

Result: Geometry


decode

NameDescription
decode(data)Decode the point cloud or mesh from memory data

Parameters:

NameTypeDescription
databyte[]The raw drc bytes

Result: Geometry


encode

NameDescription
encode(entity, fileName, options)Encode the entity to specified file

Parameters:

NameTypeDescription
entityEntityThe entity to be encoded
fileNameStringThe file name to be written
optionsDracoSaveOptionsExtra options for encoding the point cloud

Result: Geometry


encode

NameDescription
encode(entity, options)Encode the entity to Draco raw data

Parameters:

NameTypeDescription
entityEntityThe entity to be encoded
optionsDracoSaveOptionsExtra options for encoding the point cloud

Result: byte[]


createLoadOptions

NameDescription
createLoadOptions()Create a default load options for this file format

Result: LoadOptions


createSaveOptions

NameDescription
createSaveOptions()Create a default save options for this file format

Result: SaveOptions


toString

NameDescription
toString()Formats to string

Result: String