chiark / gitweb /
matrix seems right
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Nov 2017 22:31:06 +0000 (22:31 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Nov 2017 22:31:06 +0000 (22:31 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
genscad
moebius-demo.scad

diff --git a/genscad b/genscad
index 9063c368343449d7b3e79fcbef5f3047a97a1793..a8e319e230d06c15cf5b8f7268bcd359f9ebc05d 100755 (executable)
--- a/genscad
+++ b/genscad
@@ -123,9 +123,9 @@ def make_pinlocations():
   for b in bests:
     along = unit_v(np.cross(b[1], unit_z))
     upwards = np.cross(b[1], along)
-    matrix = [ b[1],
-               upwards,
-               along ]
+    matrix = [ along,
+               -upwards,
+               -b[1] ]
     print('initial', matrix, file=sys.stderr)
     matrix = np.concatenate((matrix, [[0,0,0]]))
     print('concatd', matrix, file=sys.stderr)
index 8f827bd58a3a4719716c0ec94692a3ef7f1ff667..52dae713a43686bb82b16791a425742a91c1f333 100644 (file)
@@ -99,7 +99,7 @@ module PinDemo(){
   for (i=[0,1]) {
     translate( moebius_pin_locns[i] * moebiuscore_nomsize ) {
       multmatrix(moebius_pin_matrix[i])
-       cube(center=true, [1,4,9]);
+       cube([1,4,9]);
     }
   }
 }