@cognite/3d-wrapper-base > WrappedModel
Wrapped Class which extends and provides features for the 3D model export:
class: WrappedModel
WrappedModel
⊕ 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
getInternalModel(): Cognite3DModel
Defined in WrappedModel/WrappedModel.ts:20
Gets the internal 3D model object readonly:
type: {Cognite3DModel}
memberof: WrappedModel
Returns: Cognite3DModel
▸ 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>