1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-09 22:51:16 +02:00

rounded_retangle() centre now defaults to false.

This commit is contained in:
Chris Palmer
2021-02-08 09:24:00 +00:00
parent 491d85156c
commit d75aff2ccd
8 changed files with 10 additions and 10 deletions

View File

@@ -56,10 +56,10 @@ module transformer(type) { //! Draw specified transformer
}
color("white") {
color("white")
translate_z(tx_lamination_height(type) / 2 + tx_bobbin_offset(type) / 2)
rounded_rectangle([tx_bobbin_width(type), tx_depth(type), tx_bobbin_height(type)], r = tx_bobbin_radius(type));
}
rounded_rectangle([tx_bobbin_width(type), tx_depth(type), tx_bobbin_height(type)], tx_bobbin_radius(type), true);
terminal_height = tx_height(type) - tx_lamination_height(type);
if(terminal_height)