From ec20f3307e34bb41389061045650f0b5bf3b13bf Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 24 Feb 2017 18:20:09 +0100 Subject: [PATCH] minor changes on field exporting classes --- wrap/io_trimesh/export_field.h | 21 +++++++++++++++++++++ wrap/io_trimesh/import_field.h | 1 + 2 files changed, 22 insertions(+) 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