DracoReader
Introduction
vtkDracoReader is a source object that reads a geometry compressed with the Draco library.
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkDracoReader characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IDracoReaderInitialValues | No | (default: {}) |
getBaseURL
getDataAccessHelper
getDracoDecoder
Get the draco decoder
getUrl
Get the url of the object to load.
loadData
Load the object data.
| Argument | Type | Required | Description |
|---|---|---|---|
options | IDracoReaderOptions | No |
newInstance
Method used to create a new instance of vtkDracoReader
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IDracoReaderInitialValues | No | for pre-setting some of its content |
parse
Parse data.
| Argument | Type | Required | Description |
|---|---|---|---|
content | String or ArrayBuffer | Yes | The content to parse. |
parseAsArrayBuffer
Parse data as ArrayBuffer.
| Argument | Type | Required | Description |
|---|---|---|---|
content | ArrayBuffer | Yes | The content to parse. |
parseAsText
Parse data as text.
| Argument | Type | Required | Description |
|---|---|---|---|
content | String | Yes | The content to parse. |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setDataAccessHelper
| Argument | Type | Required | Description |
|---|---|---|---|
dataAccessHelper | Yes |
setDracoDecoder
Set the draco decoder
| Argument | Type | Required | Description |
|---|---|---|---|
dracoDecoder | Yes |
setUrl
Set the url of the object to load.
| Argument | Type | Required | Description |
|---|---|---|---|
url | String | Yes | the url of the object to load. |
option | IDracoReaderOptions | No | The Draco reader options. |
setWasmBinary
Load the WASM decoder from url and set the decoderModule
| Argument | Type | Required | Description |
|---|---|---|---|
url | Yes | ||
binaryName | Yes |