]> git.scottworley.com Git - nt3d/blobdiff - box_by_faces.html
Remove degenerate faces
[nt3d] / box_by_faces.html
index 1a88d8c2b434be57ee3ce26a91da03f6e1dcc12a..b27d79551896ffdc403a49752d74760b8a858e35 100644 (file)
@@ -3,8 +3,7 @@
     <title>Box by faces</title>
     <script type="text/javascript" src="nt3d.js"></script>
     <script type="text/javascript">
     <title>Box by faces</title>
     <script type="text/javascript" src="nt3d.js"></script>
     <script type="text/javascript">
-      function box_by_faces(size_as_string) {
-        var size = parseFloat(size_as_string);
+      function box_by_faces(size) {
         var origin = [0,    0,    0   ];
         var x      = [size, 0,    0   ];
         var y      = [0,    size, 0   ];
         var origin = [0,    0,    0   ];
         var x      = [size, 0,    0   ];
         var y      = [0,    size, 0   ];