generate a triple surface mesh