using material class at mesh.h