A halfedge mesh data structure for triangulated meshes