DracoFormat
Contents
[
Hide
]DracoFormat class
Google Draco format @hideconstructor
Methods
getVersion
Name | Description |
---|---|
getVersion() | Gets file format version |
Result:
getExtension
Name | Description |
---|---|
getExtension() | Gets the extension name of this type. |
Result:
getExtensions
Name | Description |
---|---|
getExtensions() | Gets the extension names of this type. |
Result:
getContentType
Name | Description |
---|---|
getContentType() | Gets file format content type The value of the property is FileContentType integer constant. |
Result:
getFileFormatType
Name | Description |
---|---|
getFileFormatType() | Gets file format type |
Result:
decode
Name | Description |
---|---|
decode(fileName) | Decode the point cloud or mesh from specified file name |
Parameters:
Name | Type | Description |
---|---|---|
fileName | String | The file name contains the drc file |
Result: Geometry
decode
Name | Description |
---|---|
decode(data) | Decode the point cloud or mesh from memory data |
Parameters:
Name | Type | Description |
---|---|---|
data | byte[] | The raw drc bytes |
Result: Geometry
encode
Name | Description |
---|---|
encode(entity, fileName, options) | Encode the entity to specified file |
Parameters:
Name | Type | Description |
---|---|---|
entity | Entity | The entity to be encoded |
fileName | String | The file name to be written |
options | DracoSaveOptions | Extra options for encoding the point cloud |
Result: Geometry
encode
Name | Description |
---|---|
encode(entity, options) | Encode the entity to Draco raw data |
Parameters:
Name | Type | Description |
---|---|---|
entity | Entity | The entity to be encoded |
options | DracoSaveOptions | Extra options for encoding the point cloud |
Result: byte[]
createLoadOptions
Name | Description |
---|---|
createLoadOptions() | Create a default load options for this file format |
Result: LoadOptions
createSaveOptions
Name | Description |
---|---|
createSaveOptions() | Create a default save options for this file format |
Result: SaveOptions
toString
Name | Description |
---|---|
toString() | Formats to string |
Result: String