chiark / gitweb /
earring-stand: fix ur
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 22:54:18 +0000 (23:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 22:54:18 +0000 (23:54 +0100)
earring-stand.scad

index 765fd200813b6d3fe2bb00d04ed9a7c78bc69278..b8f5dbb3b2df443d0c6388827160d9da2c5fcf01 100644 (file)
@@ -148,12 +148,14 @@ module TestPlanDemo(){
 beta = asin(front_setback / front_height);
 
 uf = [-sin(beta), cos(beta)];
-ur = [-uf[0], uf[1]];
+ur = [ -uf[1], uf[0]];
 
 pp = [0, 0];
 pq = pp + uf*front_height + ur*eclip_ra_offset;
 pr = [ pq[0] - eclip_base_offset + eclip_wall_offset, 0 ];
 
+echo("uf ur P Q R", uf, ur, pp, pq, pr);
+
 module Sketch(){
   polygon([pq, pp, pr]);
 }