3d-wrapper

@cognite/3d-wrapper-base > WrappedModel

Class: WrappedModel

Wrapped Class which extends and provides features for the 3D model export:

class: WrappedModel

Hierarchy

WrappedModel

Index

Constructors

Accessors

Methods


Constructors

constructor

new WrappedModel(model: Cognite3DModel, cache: ApiCache): WrappedModel

Defined in WrappedModel/WrappedModel.ts:64

Creates an instance of WrappedModel. memberof: WrappedModel

Parameters:

Name Type Description
model Cognite3DModel -
cache ApiCache  

Returns: WrappedModel


Accessors

InternalModel

getInternalModel(): Cognite3DModel

Defined in WrappedModel/WrappedModel.ts:20

Gets the internal 3D model object readonly:

type: {Cognite3DModel}

memberof: WrappedModel

Returns: Cognite3DModel


Methods

applyStyles

applyStyles(styles: NodeStyle[]): Promise<void>

Defined in WrappedModel/WrappedModel.ts:84

Apply styles to a model. Applying another style before the last is finished may result in undefined behaviour memberof: WrappedModel

Parameters:

Name Type Description
styles NodeStyle[] Styles to apply

Returns: Promise<void>