Notifications
Clear all

[Closed] [SDK] How to assign Material ID to mesh at once?

Hi,
I want to assign a material ID to a mesh, but I can do it only by looping thru all faces using:

mesh.face[n].setMatID(matid);

Is there other way? Too assign it at once… this method above drops down the performance because I need to loop thru all faces…

1 Reply
INode::SetMtl

material ID is a face specific thing