Skip to main content
Version: 3.x

Interface: CdfModelNodeCollectionDataProvider

@cognite/reveal.CdfModelNodeCollectionDataProvider

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

Implemented by

Properties

modelId

modelId: number

Model and revision IDs for the model

Defined in

packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:29


nodeCount

nodeCount: number

Total count of nodes in the model

Defined in

packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:24


revisionId

revisionId: number

Defined in

packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:30

Methods

mapBoxFromCdfToModelCoordinates

mapBoxFromCdfToModelCoordinates(box, out?): Box3

Maps a box from CDF space to Reveal space

Parameters

NameType
boxBox3
out?Box3

Returns

Box3

Defined in

packages/cad-styling/src/CdfModelNodeCollectionDataProvider.ts:19


mapBoxFromModelToCdfCoordinates

mapBoxFromModelToCdfCoordinates(box, out?): Box3

Maps a box from Reveal space to CDF space

Parameters

NameType
boxBox3
out?Box3

Returns

Box3

Defined in

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