From 75e3ff448db8cba668e540f85a70c3af54ffcc1a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 5 Nov 2017 22:31:06 +0000 Subject: [PATCH] matrix seems right Signed-off-by: Ian Jackson --- genscad | 6 +++--- moebius-demo.scad | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/genscad b/genscad index 9063c36..a8e319e 100755 --- 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) diff --git a/moebius-demo.scad b/moebius-demo.scad index 8f827bd..52dae71 100644 --- a/moebius-demo.scad +++ b/moebius-demo.scad @@ -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]); } } } -- 2.30.2