Skip to content

wiring.scad

Revar Desmera edited this page Dec 14, 2024 · 1 revision

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);

Clone this wiki locally