From c17e01d3663b6631199bbab5d10a25f669718231 Mon Sep 17 00:00:00 2001 From: ccolin Date: Fri, 2 Oct 2020 11:12:58 +0200 Subject: [PATCH] implements computation of the average face surface area --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bfc5897..708bbbc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -110,8 +110,9 @@ int main(int argc, char *argv[]) { cerr << "Les arêtes sont sur une face : " << (check_edges_arent_lonely(argv[1]) ? "oui" : "non") << endl; - cerr << "Aire totale : " << total_area(mesh) << endl; - // stats_to_csv(stats_surface_area(mesh)); + float area = total_area(mesh); + cerr << "Aire totale : " << area << endl; + cerr << "Aire moyenne : " << area / mesh.n_faces() << endl; stats_surface_area(mesh); return 0; }