Sets the mesh and its associated material at the specified index.
The index of the part to set.
The mesh to set.
The material to set.