chiark / gitweb /
sewing-table: NewRearCurve: wip, need scale
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 12:02:36 +0000 (13:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 12:02:36 +0000 (13:02 +0100)
sewing-table.scad.m4

index 2bb8f7a..8f2d6f7 100644 (file)
@@ -422,16 +422,27 @@ module Machine_Profile(){
   }
 }
 
-module Machine_NewRearProfile(){ ////toplevel
+module Machine_NewRearProfile(){
   // figures copied out of xfig edit boxes
   // best not to edit the posbox size if poss - just move it
-  posbox = 10 * ([7.2333,-14.1267] - [-16.2289,40.0289]);
-  sideline = -10 * ([-6.2400,13.5600] - [-2.4467,28.2556]);
+  posbox = 10 * ([7.2333,-14.1267] - [-16.2289,40.0289]); // box, Green
+  sideline = -10 * ([-6.2400,13.5600] - [-2.4467,28.2556]); // line, Blue
   sh = -[abs(posbox[0]), abs(posbox[1])];
   rot = atan2(-sideline[0], sideline[1]);
   echo("SH",sh,rot);
   rotate(rot) translate(sh){
-    import("sewing-table-rear-profile.dxf", convexity=10);
+    import("sewing-table-rear-profile.dxf", convexity=10); // spline, Pink3
+  }
+}
+
+module Machine_NewRearCurve(){
+  intersection(){
+    rotate_extrude(convexity=10, $fn=32)
+      rotate(90)
+      translate([ 0, -rearcurve_double_inrad ])
+      Machine_NewRearProfile();
+    translate([0,0,-500])
+      cube([500,500,1000]);
   }
 }
 
@@ -727,4 +738,5 @@ module Demo(){ ////toplevel
 //Demo();
 
 //Machine_Profile();
-//Machine_RearProfile();
+//Machine_NewRearProfile();
+//Machine_NewRearCurve();