Write a file of a triangulated square