Minor mesh building fixes in example