From 0f00bb720e4631b000bdec92abb8e5790fb5f2e7 Mon Sep 17 00:00:00 2001 From: maxcorsini Date: Tue, 20 Dec 2005 14:44:10 +0000 Subject: [PATCH] Modify html table --- apps/trimeshinfo/trimeshinfo.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/trimeshinfo/trimeshinfo.cpp b/apps/trimeshinfo/trimeshinfo.cpp index 3aa8bf16..281cb9e8 100644 --- a/apps/trimeshinfo/trimeshinfo.cpp +++ b/apps/trimeshinfo/trimeshinfo.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.24 2005/12/20 13:29:41 corsini +Remove unuseful Clear function + Revision 1.23 2005/12/19 15:00:53 corsini Disable xml output temporarily @@ -211,7 +214,7 @@ static const char * HTML_TABLE[HTML_LINES]= " Vertices", " Faces", " Edges", -" Holes", +" Holes/
Boundaries", " Connected
Components", " Isolated
Vertices", " Duplicated
Vertices", @@ -389,7 +392,13 @@ void SaveMeshInfoHtmlTable(fstream &fout, MeshInfo &mi) fout << " " << mi.vn << "" << std::endl; fout << " " << mi.fn << "" << std::endl; fout << " " << mi.count_e << "" << std::endl; - fout << " " << mi.numholes << "" << std::endl; + + if (mi.Manifold) + fout << " " << mi.numholes << "" << std::endl; + else + fout << " N/A" << std::endl; + + fout << " " << mi.numcomponents << "" << std::endl; fout << " " << mi.count_uv << "" << std::endl; fout << " " << mi.dv << "" << std::endl; @@ -411,7 +420,10 @@ void SaveMeshInfoHtmlTable(fstream &fout, MeshInfo &mi) else if (!mi.Orientable) fout << " No / No" << std::endl; - fout << " " << mi.Genus << "" << std::endl; + if (mi.Manifold) + fout << " " << mi.Genus << "" << std::endl; + else + fout << " N/A" << std::endl; fout << " " << std::endl; }