diff --git a/wrap/io_trimesh/export_field.h b/wrap/io_trimesh/export_field.h index 80f02a45..bcd97e9b 100644 --- a/wrap/io_trimesh/export_field.h +++ b/wrap/io_trimesh/export_field.h @@ -124,6 +124,27 @@ public: fclose(f); } + static void SaveCSVField(MeshType &mesh, + const std::string &field_1, + const std::string &field_2) + { + FILE *f1=NULL; + FILE *f2=NULL; + f1=fopen(field_1.c_str(),"wt"); + f2=fopen(field_2.c_str(),"wt"); + for (size_t i=0;i