Previous Up Next

M3chgObjMaterial
The function takes a mesh or a topology as a parameter.
Replaces a material by another in the given object’s topology.
In the case of a mesh in multi-topo mode, the change is performed on all the object’s topologies.

I M3chgObjMaterial (
S3d _session_
H3d _object_
HMat3d _oldMaterial_
HMat3d _newMaterial_
)
Parameters

_session_
3D Session
_object_
Mesh or topology
_oldMaterial_
Old material
_newMaterial_
New material
Return value

0 if successful, otherwise nil