From cf79fba26d4b05e8ab8aa97bdd187c1ca10f79b0 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Sat, 19 Jun 2021 21:24:37 -0700 Subject: [PATCH] Make labels on show_anchors() more legible. --- debug.scad | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/debug.scad b/debug.scad index 4bb8479..920eec9 100644 --- a/debug.scad +++ b/debug.scad @@ -387,13 +387,24 @@ module show_anchors(s=10, std=true, custom=true) { color("black") noop($tags="anchor-arrow") { xrot(two_d? 0 : 90) { - up(s/10) { - linear_extrude(height=0.01, convexity=12, center=true) { - text(text=anchor[0], size=s/4, halign="center", valign="center"); + back(s/3) { + yrot_copies(n=2) + up(s/30) { + linear_extrude(height=0.01, convexity=12, center=true) { + text(text=anchor[0], size=s/4, halign="center", valign="center"); + } } } } } + color([1, 1, 1, 0.4]) + noop($tags="anchor-arrow") { + xrot(two_d? 0 : 90) { + back(s/3) { + zcopies(s/21) cube([s/4.5*len(anchor[0]), s/3, 0.01], center=true); + } + } + } } } }