1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-10 09:24:01 +02:00
This commit is contained in:
Alex Verschoot
2025-03-16 18:50:51 +01:00
parent e87e19aa18
commit 9862b3c3a3

View File

@@ -78,7 +78,7 @@ module dimension(startpoint, endpoint, text = "", thickness = 0, text_size = 0 ,
text(text == "" ? str(length) : text, size = (text_size == 0? length/15:text_size), valign = "bottom", halign = "center"); text(text == "" ? str(length) : text, size = (text_size == 0? length/15:text_size), valign = "bottom", halign = "center");
} }
//offset will detirmine how much space is between the measured point and the dimension //offset will determine how much space is between the measured point and the dimension
//for x, this offset will be in the y direction //for x, this offset will be in the y direction
//plane options : xy, xz //plane options : xy, xz
module dimension_x(startpoint, endpoint, offset = 1, text = "", thickness = 0, text_size = 0 , plane = "xy") { module dimension_x(startpoint, endpoint, offset = 1, text = "", thickness = 0, text_size = 0 , plane = "xy") {
@@ -110,7 +110,7 @@ module dimension_x(startpoint, endpoint, offset = 1, text = "", thickness = 0, t
cylinder( h= h2+thickness*2, d=thickness); cylinder( h= h2+thickness*2, d=thickness);
} }
//offset will detirmine how much space is between the measured point and the dimension //offset will determine how much space is between the measured point and the dimension
//for y, this offset will be in the x direction //for y, this offset will be in the x direction
//plane options : xy, yz //plane options : xy, yz
module dimension_y(startpoint, endpoint, offset = 1, text = "", thickness = 0, text_size = 0 , plane = "xy") { module dimension_y(startpoint, endpoint, offset = 1, text = "", thickness = 0, text_size = 0 , plane = "xy") {
@@ -142,7 +142,7 @@ module dimension_y(startpoint, endpoint, offset = 1, text = "", thickness = 0, t
cylinder( h= h2+thickness*2, d=thickness); cylinder( h= h2+thickness*2, d=thickness);
} }
//offset will detirmine how much space is between the measured point and the dimension //offset will determine how much space is between the measured point and the dimension
//for z, this offset will be in the x direction //for z, this offset will be in the x direction
//plane options : xz, yz //plane options : xz, yz
module dimension_z(startpoint, endpoint, offset = 1, text = "", thickness = 0, text_size = 0 , plane = "xz") { module dimension_z(startpoint, endpoint, offset = 1, text = "", thickness = 0, text_size = 0 , plane = "xz") {