Wiring¶
⚙️ Spec sheet → — visual schematic and metrics measured from a real rendered STL.
Rendering for routed wire bundles, from BOSL2’s wiring.scad.
shape() hex-packs a set of round wires into a bundle and sweeps them
along a path whose corners are rounded to a given radius, colouring each wire from a 17-entry table
(re-used if there are more than 17 wires). Each wire is an independently watertight swept tube;
hex_offsets() exposes the optimal hexagonal packing centres it uses.
-
class pybosl2.parts.wiring.WireBundle(path, wires, wirediam=
2, rounding=10, wirenum=0, corner_steps=15)[source]¶ Bases:
objectA bundle of round wires routed along a path with rounded corners.
The wires are hex-packed in the bundle cross-section and each is coloured from the 17-entry table (re-used, offset by wirenum, if there are more than 17). wirediam is each wire’s diameter; corner_steps sets how finely the rounded corners are faceted.
Examples
A 13-wire bundle routed around three corners:
from pybosl2.parts.wiring import WireBundle WireBundle([[50, 0, -50], [50, 50, -50], [0, 50, -50], [0, 0, -50], [0, 0, 0]], wires=13, rounding=10).show()Loading 3-D preview…- Parameters:¶
- property wires : int¶
Number of wires in the bundle.
- property wirediam : float¶
Wire diameter in mm.