chiark / gitweb /
matrix seems right
[moebius3.git] / genscad
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)