Skip to main content
Version: Next

Interface: CdfModelNodeCollectionDataProvider

Defined in: packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:10

Provides metadata needed to get asset mappings for a CDF 3D model

Properties

modelId

modelId: number

Defined in: packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:31

Model and revision IDs for the model


nodeCount

nodeCount: number

Defined in: packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:26

Total count of nodes in the model


revisionId

revisionId: number

Defined in: packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:32

Methods

getCdfToDefaultModelTransformation()

getCdfToDefaultModelTransformation(out?): Matrix4

Defined in: packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:21

Gets the default transformation of the model from CDF space. The current total transformation of the model from the backend to its transform in ThreeJS space is thus model.getCdfToDefaultModelTransformation() * model.getModelTransformation().

Parameters

out?

Matrix4

Returns

Matrix4


getModelTransformation()

getModelTransformation(out?): Matrix4

Defined in: packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:14

Gets the transformation of the model in ThreeJS space

Parameters

out?

Matrix4

Returns

Matrix4