Click or drag to resize
SoCallbackActionGetMaterial Method (SbColor, SbColor, SbColor, SbColor, Single, Single, Int32)

Returns the current material information from the state.

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void GetMaterial(
	out SbColor ambient,
	out SbColor diffuse,
	out SbColor specular,
	out SbColor emission,
	out float shininess,
	out float transparency,
	int mtlIndex
)

Parameters

ambient
Type: OIV.InventorSbColor
diffuse
Type: OIV.InventorSbColor
specular
Type: OIV.InventorSbColor
emission
Type: OIV.InventorSbColor
shininess
Type: SystemSingle
transparency
Type: SystemSingle
mtlIndex
Type: SystemInt32
Remarks

Providing a mtlIndex will return the material defined for that index.

See Also