From: Scott Worley Date: Mon, 31 Dec 2012 05:31:11 +0000 (-0800) Subject: Add % of faces to NaN alert. X-Git-Url: http://git.scottworley.com/nt3d/commitdiff_plain/34592f10eb3e47c8f6738aceb5ff5ea48acb089c?hp=6e5e17591a2a5adac5e4ec016c7bad71505b1e64 Add % of faces to NaN alert. --- diff --git a/nt3d.js b/nt3d.js index 3ce05be..9eee504 100644 --- a/nt3d.js +++ b/nt3d.js @@ -353,7 +353,7 @@ nt3d = { if (nan_in_face) nan_face_count ++; } if (nan_count != 0) { - alert(nan_count + " NaNs in " + nan_point_count + " points in " + nan_face_count + " faces."); + alert(nan_count + " NaNs in " + nan_point_count + " points in " + nan_face_count + " faces (" + (100 * nan_face_count / (this.points.length/3)) + "% of faces)."); } // Remove degenerate faces