MaterialWithData: added applyToCuboid() method which takes a MBU