From: Ian Jackson Date: Sun, 5 Nov 2017 22:31:06 +0000 (+0000) Subject: matrix seems right X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=75e3ff448db8cba668e540f85a70c3af54ffcc1a;p=moebius3.git matrix seems right Signed-off-by: Ian Jackson --- 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]); } } }