]> git.scottworley.com Git - nt3d/commitdiff
Add % of faces to NaN alert.
authorScott Worley <ScottWorley@ScottWorley.com>
Mon, 31 Dec 2012 05:31:11 +0000 (21:31 -0800)
committerScott Worley <ScottWorley@ScottWorley.com>
Mon, 31 Dec 2012 05:31:11 +0000 (21:31 -0800)
nt3d.js

diff --git a/nt3d.js b/nt3d.js
index 3ce05be192449917990be333d3a0b8a6621b6c17..9eee5045617c0a612bd1eed527f98845e7e89845 100644 (file)
--- 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