Skip to main content

Interface: IModel<TModel>

Core-API.IModel

Type parameters

NameType
TModelany

Hierarchy

  • IEventDispatcher<"objectUpdate" | "materialUpdate" | "materialChanged" | "select" | "added" | "removed" | "dispose" | "geometryUpdate" | string>

  • Partial<IDisposable>

  • IUiConfigContainer

    IModel

    ↳↳ ICamera

Implemented by

Properties

name

name: string

Defined in

webgi/src/interfaces.ts:305


uuid

Readonly uuid: string

Defined in

webgi/src/interfaces.ts:306


visible

visible: boolean

Defined in

webgi/src/interfaces.ts:307


assetType

assetType: "model"

Defined in

webgi/src/interfaces.ts:309


modelObject

modelObject: TModel

Internal three.js Object3D instance (like Mesh, Group, etc)

Defined in

webgi/src/interfaces.ts:313


material

Optional Readonly material: IMaterial<any> | IMaterial<any>[]

Use setMaterial to change the material Get one or more materials applied to an object

Defined in

webgi/src/interfaces.ts:318


geometry

Optional Readonly geometry: any

Defined in

webgi/src/interfaces.ts:319


userData

userData: any

Defined in

webgi/src/interfaces.ts:328


uiConfig

Optional uiConfig: UiObjectConfig<any, string>

Inherited from

IUiConfigContainer.uiConfig

Defined in

webgi/src/interfaces.ts:586

Methods

setMaterial

Optional setMaterial(material): IMaterial<any>[]

Parameters

NameType
materialundefined | IMaterial<any> | IMaterial<any>[]

Returns

IMaterial<any>[]

Defined in

webgi/src/interfaces.ts:320


setGeometry

Optional setGeometry(geometry, force?): any

returns the old geometry.

Parameters

NameType
geometryany
force?boolean

Returns

any

Defined in

webgi/src/interfaces.ts:326


setDirty

Optional setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Defined in

webgi/src/interfaces.ts:327