v2.33
 
IObjectWithMaterial Interface Reference

Represents an object which has an associated material. More...

Inheritance diagram for IObjectWithMaterial:

Public Member Functions

HRESULT HasMaterial ([out, retval] VARIANT_BOOL *pResult)
 Queries if the object has a material associated with it.
 

Properties

int MaterialId [get]
 The associated material ID. If the object has no material associated with it (HasMaterial() returns FALSE), a special value is returned, for which IMaterialManager::GetMaterial() returns nullptr.
 

Detailed Description

Represents an object which has an associated material.

This interface can be obtained from IModelObject using standard COM QueryInterface method.

Member Function Documentation

◆ HasMaterial()

HRESULT HasMaterial ( [out, retval] VARIANT_BOOL * pResult)

Queries if the object has a material associated with it.

Returns
TRUE if the object has an associated material, FALSE otherwise.