Skip to main content
Version: 3.x

Interface: ModelMetadataProvider

@cognite/reveal/extensions/datasource.ModelMetadataProvider

Provides metadata for 3D models.

Methods

getModelCamera

getModelCamera(identifier): Promise<{ position: Vector3 ; target: Vector3 }>

Parameters

NameType
identifierModelIdentifier

Returns

Promise<{ position: Vector3 ; target: Vector3 }>

Defined in

packages/modeldata-api/src/ModelMetadataProvider.ts:14


getModelMatrix

getModelMatrix(identifier, format): Promise<Matrix4>

Parameters

NameType
identifierModelIdentifier
formatstring

Returns

Promise<Matrix4>

Defined in

packages/modeldata-api/src/ModelMetadataProvider.ts:15


getModelOutputs

getModelOutputs(modelIdentifier): Promise<BlobOutputMetadata[]>

Parameters

NameType
modelIdentifierModelIdentifier

Returns

Promise<BlobOutputMetadata[]>

Defined in

packages/modeldata-api/src/ModelMetadataProvider.ts:12


getModelUri

getModelUri(identifier, formatMetadata): Promise<string>

Parameters

NameType
identifierModelIdentifier
formatMetadataBlobOutputMetadata

Returns

Promise<string>

Defined in

packages/modeldata-api/src/ModelMetadataProvider.ts:13