mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-02 01:10:13 +02:00
Make labels on show_anchors() more legible.
This commit is contained in:
13
debug.scad
13
debug.scad
@@ -387,7 +387,9 @@ module show_anchors(s=10, std=true, custom=true) {
|
|||||||
color("black")
|
color("black")
|
||||||
noop($tags="anchor-arrow") {
|
noop($tags="anchor-arrow") {
|
||||||
xrot(two_d? 0 : 90) {
|
xrot(two_d? 0 : 90) {
|
||||||
up(s/10) {
|
back(s/3) {
|
||||||
|
yrot_copies(n=2)
|
||||||
|
up(s/30) {
|
||||||
linear_extrude(height=0.01, convexity=12, center=true) {
|
linear_extrude(height=0.01, convexity=12, center=true) {
|
||||||
text(text=anchor[0], size=s/4, halign="center", valign="center");
|
text(text=anchor[0], size=s/4, halign="center", valign="center");
|
||||||
}
|
}
|
||||||
@@ -395,6 +397,15 @@ module show_anchors(s=10, std=true, custom=true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
children();
|
children();
|
||||||
|
Reference in New Issue
Block a user