這是動態改變Collada物件face材質的範例
for each(var face:Triangle3D in mesh.geometry.faces)
{
var color:Number = Math.random() * 0xffffff;
if(face.material.name == "Material_001")
{
face.material = new ColorMaterial(color);
}
............
}
[demo]