From c2554e52369b35bf1567c8919669aa2993219eb0 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Tue, 22 Jan 2013 10:04:28 +0000 Subject: [PATCH] added fucntion Save4ROSYFace --- wrap/io_trimesh/export_field.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/wrap/io_trimesh/export_field.h b/wrap/io_trimesh/export_field.h index 75dfc47d..c9aeaa6e 100644 --- a/wrap/io_trimesh/export_field.h +++ b/wrap/io_trimesh/export_field.h @@ -60,6 +60,25 @@ public: fclose(f); } + ///Save a 4 rosy format file as used by + ///Interactive Visualization of Rotational Symmetry Fields on Surfaces + ///Jonathan Palacios and Eugene Zhang + static void Save4ROSYFace(MeshType &mesh, + const char *path) + { + FILE *f = fopen(path,"wt"); + fprintf(f,"%d\n",mesh.vn); + fprintf(f,"4\n"); + for (unsigned int i=0;i