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:
@@ -64,7 +64,7 @@ module dimension(startpoint, endpoint, text = "", thickness = 0.1) {
|
|||||||
translate(midpoint + up_dir*0.66)
|
translate(midpoint + up_dir*0.66)
|
||||||
rotate([0, elevation, azimuth])
|
rotate([0, elevation, azimuth])
|
||||||
linear_extrude(thickness)
|
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
|
//offset will detirmine how much space is between the measured point and the dimension
|
||||||
|
Reference in New Issue
Block a user