Prototypes for material and trianglemesh