1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-18 05:01:22 +02:00

Fixed ziptie bug for small wires and corners made sharper.

This commit is contained in:
Chris Palmer
2022-03-17 20:48:43 +00:00
parent b70911dc13
commit 99a5570e24
4 changed files with 18 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

@@ -16,14 +16,23 @@
// You should have received a copy of the GNU General Public License along with NopSCADlib.
// If not, see <https://www.gnu.org/licenses/>.
//
wire_r = 5; // [1 : 20]
t = 0; // [0 : 3]
include <../utils/core/core.scad>
use <../utils/layout.scad>
include <../vitamins/zipties.scad>
module zipties()
layout([for(z = zipties) 9], 10)
ziptie(zipties[$i], 5);
layout([for(z = zipties) 9], 2 * wire_r) {
ziptie(zipties[$i], wire_r, t);
if(t)
color(grey(20))
cylinder(r = wire_r, h = 10, center = true);
}
if($preview)
zipties();