mesh .face .material .set  (  MeshObjectID ,  PolygonIndex ,  MaterialObjectID ,  bQuadState ,  Side  )  
                                                    
Description :

This instruction assigns a material to one or two polygons in a mesh.

Parameters :

  • ObjectID of the the mesh.
  • Index of the first polygon.
  • ObjectID of the material.
  • TRUE: Set the two consecutive polygons from the third parameter.
    FALSE: Do not.
  • Side of the polygon to assign :
    MATERIAL_FRONTSIDE    Front-facing polygons will be assigned.
    MATERIAL_BACKSIDE    Back-facing polygons will be assigned.
    MATERIAL_BOTHSIDE    Both sides will be assigned.

Examples :