Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DrcPointCloudImporter

The draco Importer class.

Hierarchy

  • DrcPointCloudImporter

Index

Constructors

Properties

Methods

  • __convertBufferToURI(arrayBuffer: ArrayBuffer): Promise<unknown>
  • __decodeBuffer(arrayBuffer: ArrayBuffer): Promise<unknown>
  • __decodeDraco(arrayBuffer: ArrayBuffer, defaultOptions: GltfLoadOption, basePath: string, options?: {}): Promise<void | RnM2>
  • __decodeDracoToPrimitive(arrayBuffer: ArrayBuffer): Primitive
  • __decodedBufferToJSON(buffer: Float32Array, numPoints: number, attributeNames: string[], attributeComponents: number[]): Promise<unknown>
  • __getGeometryFromDracoBuffer(draco: any, decoder: any, arrayBuffer: ArrayBuffer): any
  • __loadFromArrayBuffer(arrayBuffer: ArrayBuffer, defaultOptions: GltfLoadOption, basePath: string, options?: {}): Promise<any>
  • __setAccessorsAndBufferViewsToJSON(numPoints: number, attributeNames: string[], attributeComponents: number[], json: any): void
  • __setBuffersToJSON(buffer: Float32Array, json: any): Promise<void>
  • __setMeshesToJSON(attributeNames: string[], json: any): void
  • _checkRnGltfLoaderOptionsExist(gltfModel: RnM2): boolean
  • _loadAsBinaryJson(dataView: DataView, isLittleEndian: boolean, arrayBuffer: ArrayBuffer, options: GltfLoadOption, defaultOptions: GltfLoadOption, basePath: string): Promise<any>
  • _loadDependenciesOfAccessors(gltfJson: RnM2): void
  • _loadDependenciesOfAnimations(gltfJson: RnM2): void
  • _loadDependenciesOfBufferViews(gltfJson: RnM2): void
  • _loadDependenciesOfJoints(gltfJson: RnM2): void
  • _loadDependenciesOfMaterials(gltfJson: RnM2): void
  • _loadDependenciesOfMeshes(gltfJson: RnM2): void
  • _loadDependenciesOfNodes(gltfJson: RnM2): void
  • _loadDependenciesOfScenes(gltfJson: RnM2): void
  • _loadDependenciesOfTextures(gltfJson: RnM2): void
  • _loadInner(uint8array: undefined | Uint8Array, basePath: string, gltfJson: RnM2, options: GltfLoadOption): Promise<(void | (void | ArrayBuffer)[])[]>
  • _loadResources(uint8Array: Uint8Array, basePath: string, gltfJson: RnM2, options: GltfLoadOption, resources: { buffers: any[]; images: any[]; shaders: any[] }): Promise<void | (void | ArrayBuffer)[]>
  • _mergeExtendedJson(gltfJson: RnM2, extendedData: any): void
  • importArrayBuffer(uri: string, arrayBuffer: ArrayBuffer, options?: GltfLoadOption): Promise<void | RnM2>
  • Import the specified array buffer of draco file where the type must be point cloud. WEIGHTS_0 and JOINTS_0 attribute and all the mesh type and is not support yet.

    Parameters

    • uri: string

      uri of drc file

    • arrayBuffer: ArrayBuffer

      fetched array buffer of drc file

    • Optional options: GltfLoadOption

      options for loading process

    Returns Promise<void | RnM2>

    a glTF2 based JSON pre-processed

  • importPointCloudToPrimitive(uri: string): Promise<Primitive>

Generated using TypeDoc