chiark / gitweb /
poster-tube-lid: CatchPinProfileDemo: adhoc translate
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 Dec 2022 15:31:54 +0000 (15:31 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Dec 2022 11:38:09 +0000 (11:38 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
poster-tube-lid.scad

index 07944b271cf54352dd13f4989dad7e0e747f8d60..5ac63e481b01100e31a11d7c41c14026d7561d9a 100644 (file)
@@ -713,27 +713,29 @@ module CatchDemoS(){ /////toplevel
 }
 
 module CatchPinProfileDemo(){ /////toplevel
-  echo("G ",
-       bayo_n[0] - bayo_e[0]);
-  color("blue") translate([0,0,
-                          +1,
-            ]) {
-    CatchAssemblyCoreProfile();
-    CatchHeadProfile();
-  }
-  translate([0,0,10])
-    color("red")
-    CatchTipProfile(0);
+  translate([0, 0 * -bayo_behind,0]) {
+    echo("G ",
+        bayo_n[0] - bayo_e[0]);
+    color("blue") translate([0,0,
+                            +1,
+              ]) {
+      CatchAssemblyCoreProfile();
+      CatchHeadProfile();
+    }
+    translate([0,0,10])
+      color("red")
+      CatchTipProfile(0);
 
-  polygon(bayo_polygon, convexity=10);
+    polygon(bayo_polygon, convexity=10);
 
-  // adhoc show a position
-  color("purple")
-  translate(concat(
-                  cppa,
-                  10
-                  )) difference(){ circle(2.5); circle(2.0); }
+    // adhoc show a position
+    color("purple")
+    translate(concat(
+                    cppa,
+                    10
+                    )) difference(){ circle(2.5); circle(2.0); }
 
+ }
 }
 
 //ProfilesDemo();