SoCallbackActionGetMaterial Method (SbColor, SbColor, SbColor, SbColor, Single, Single, Int32) |
Returns the current material information from the state.
Namespace: OIV.Inventor.ActionsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.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
)
Public Sub GetMaterial (
<OutAttribute> ByRef ambient As SbColor,
<OutAttribute> ByRef diffuse As SbColor,
<OutAttribute> ByRef specular As SbColor,
<OutAttribute> ByRef emission As SbColor,
<OutAttribute> ByRef shininess As Single,
<OutAttribute> ByRef transparency As Single,
mtlIndex As Integer
)
public:
void GetMaterial(
[OutAttribute] SbColor% ambient,
[OutAttribute] SbColor% diffuse,
[OutAttribute] SbColor% specular,
[OutAttribute] SbColor% emission,
[OutAttribute] float% shininess,
[OutAttribute] float% transparency,
int mtlIndex
)
member GetMaterial :
ambient : SbColor byref *
diffuse : SbColor byref *
specular : SbColor byref *
emission : SbColor byref *
shininess : float32 byref *
transparency : float32 byref *
mtlIndex : int -> unit
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