Interface: IModel<TModel>
Core-API.IModel
Type parameters
Name | Type |
---|---|
TModel | any |
Hierarchy
IEventDispatcher
<"objectUpdate"
|"materialUpdate"
|"materialChanged"
|"select"
|"added"
|"removed"
|"dispose"
|"geometryUpdate"
|string
>Partial
<IDisposable
>↳
IModel
↳↳
ICamera
Implemented by
Properties
name
• name: string
Defined in
uuid
• Readonly
uuid: string
Defined in
visible
• visible: boolean
Defined in
assetType
• assetType: "model"
Defined in
modelObject
• modelObject: TModel
Internal three.js Object3D instance (like Mesh, Group, etc)
Defined in
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
geometry
• Optional
Readonly
geometry: any
Defined in
userData
• userData: any
Defined in
uiConfig
• Optional
uiConfig: UiObjectConfig
<any
, string
>
Inherited from
Defined in
Methods
setMaterial
▸ Optional
setMaterial(material
): IMaterial
<any
>[]
Parameters
Name | Type |
---|---|
material | undefined | IMaterial <any > | IMaterial <any >[] |
Returns
IMaterial
<any
>[]
Defined in
setGeometry
▸ Optional
setGeometry(geometry
, force?
): any
returns the old geometry.
Parameters
Name | Type |
---|---|
geometry | any |
force? | boolean |
Returns
any
Defined in
setDirty
▸ Optional
setDirty(options?
): void
Parameters
Name | Type |
---|---|
options? | AnyOptions |
Returns
void