1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-17 04:43:59 +02:00

Improved text alligment

This commit is contained in:
Alex Verschoot
2025-03-07 22:07:53 +01:00
committed by GitHub
parent b166ec47dd
commit 0123885711

View File

@@ -64,7 +64,7 @@ module dimension(startpoint, endpoint, text = "", thickness = 0.1) {
translate(midpoint + up_dir*0.66)
rotate([0, elevation, azimuth])
linear_extrude(thickness)
text(text == "" ? str(length) : text, size = thickness * 5, valign = "center", halign = "center");
text(text == "" ? str(length) : text, size = thickness * 5, valign = "bottom", halign = "center");
}
//offset will detirmine how much space is between the measured point and the dimension