Triangle ordering fixup for low-raise segments
authorJose Ignacio Croce Busquets <jose.croce@gmail.com>
Sat, 22 Feb 2014 20:20:17 +0000 (17:20 -0300)
committerJose Ignacio Croce Busquets <jose.croce@gmail.com>
Sat, 22 Feb 2014 20:20:17 +0000 (17:20 -0300)
seg_digit.scad

index b6083a1..01bdb40 100644 (file)
@@ -333,18 +333,18 @@ module segment(size, r = 0, on = true)
                       , [     radius         ,       0, -radius ]
                       , [     radius + length,       0, -radius ]
                       ]
-        , triangles = [ [ 0, 1, 6 ]
-                      , [ 1, 2, 6 ]
-                      , [ 2, 7, 6 ]
-                      , [ 2, 3, 7 ]
-                      , [ 3, 4, 7 ]
-                      , [ 4, 5, 7 ]
-                      , [ 5, 6, 7 ]
-                      , [ 0, 6, 5 ]
-                      , [ 0, 5, 1 ]
-                      , [ 1, 5, 4 ]
-                      , [ 1, 4, 2 ]
-                      , [ 2, 4, 3 ]
+        , triangles = [ [ 0, 6, 1 ]
+                      , [ 1, 6, 2 ]
+                      , [ 2, 6, 7 ]
+                      , [ 2, 7, 3 ]
+                      , [ 3, 7, 4 ]
+                      , [ 4, 7, 5 ]
+                      , [ 5, 7, 6 ]
+                      , [ 0, 5, 6 ]
+                      , [ 0, 1, 5 ]
+                      , [ 1, 4, 5 ]
+                      , [ 1, 2, 4 ]
+                      , [ 2, 3, 4 ]
                       ]);
   linear_extrude(height = radius)
     polygon(points = [ [ 0                  ,        0]