1 wiring.scad
Revar Desmera edited this page 2024-12-14 02:23:46 -08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

LibFile: wiring.scad

Rendering for routed wire bundles

To use, add the following lines to the beginning of your file:

include <BOSL2/std.scad>
include <BOSL2/wiring.scad>

File Contents

  1. Section: Modules
    • wire_bundle() Creates a wire bundle for a given number of wires. [Geom]

Section: Modules

Module: wire_bundle()

Synopsis: Creates a wire bundle for a given number of wires. [Geom]

Topics: Wiring

See Also: path_sweep(), path_sweep2d()

Usage:

  • wire_bundle(path, wires, [wirediam], [rounding], [wirenum=], [corner_steps=]);

Description:

Returns a 3D object representing a bundle of wires that follow a given path, with the corners rounded to a given radius. There are 17 base wire colors. If you have more than 17 wires, colors will get re-used.

Arguments:

By Position What it does
path The 3D path that the wire bundle should follow.
wires The number of wires in the wire bundle.
wirediam The diameter of each wire in the bundle.
rounding The radius that the path corners will be rounded to.
By Name What it does
wirenum The first wire's offset into the color table.
corner_steps The corner roundings in the path will be converted into this number of segments.

Example 1:

wire\_bundle() Example 1
include <BOSL2/std.scad>
include <BOSL2/wiring.scad>
wire_bundle([[50,0,-50], [50,50,-50], [0,50,-50], [0,0,-50], [0,0,0]], rounding=10, wires=13);