Imports a Draco point cloud from an ArrayBuffer and converts it to glTF2 format. This method is useful when you already have the file data in memory.
The original URI of the file (used for base path calculation)
The ArrayBuffer containing the Draco file data
Optional
options: GltfLoadOptionOptional loading configuration
A Promise that resolves to the glTF2 JSON or rejects with an error
Imports a Draco point cloud file from a URI and converts it to glTF2 format. This method supports both direct file URIs and file collections passed through options.
The URI of the .drc file to import
Optional
options: GltfLoadOptionOptional loading configuration including file collections and processing options
A Promise that resolves to a Result containing the glTF2 JSON or an error
Imports a Draco point cloud file and converts it directly to a Rhodonite Primitive. This method bypasses glTF conversion for direct primitive creation.
The URI of the .drc file to import
A Promise that resolves to a Rhodonite Primitive object
Static
getGets the singleton instance of the DrcPointCloudImporter. Creates a new instance if one doesn't exist.
The singleton instance of DrcPointCloudImporter
The Draco Point Cloud Importer class for importing and decoding Draco compressed point cloud files. This class provides functionality to import Draco files and convert them to glTF2 format or Rhodonite primitives. Currently supports point cloud geometry only - mesh types, WEIGHTS_0, and JOINTS_0 attributes are not supported.