Fixed facet geometry generation function. Mask canvas now renders properly.