]> git.scottworley.com Git - nt3d/blobdiff - torus_by_extrude.html
Use "this" instead of the global name
[nt3d] / torus_by_extrude.html
index c95f8216532e4ac27bff2c4ed48bbd2cb7aa0772..4655519cecec47c5551f511a4d10db268536f106 100644 (file)
@@ -8,7 +8,7 @@
        return nt3d.closed_extrude(
          path,
          nt3d.circle(cross_section_radius, short_steps),
        return nt3d.closed_extrude(
          path,
          nt3d.circle(cross_section_radius, short_steps),
-         nt3d.rotate_about_origin(path, [0,0,1], Math.PI/2),
+         nt3d.shapenormals_from_closed_path(path),
          [0, 0, 1]);
       }
       var params = [["Torus radus", 100],
          [0, 0, 1]);
       }
       var params = [["Torus radus", 100],