-
Notifications
You must be signed in to change notification settings - Fork 118
wiring.scad
Revar Desmera edited this page Dec 14, 2024
·
1 revision
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>
-
Section: Modules
-
wire_bundle()
– Creates a wire bundle for a given number of wires. [Geom]
-
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:
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);
Table of Contents
Function Index
Topics Index
Cheat Sheet
Tutorials
Basic Modeling:
- constants.scad STD
- transforms.scad STD
- attachments.scad STD
- shapes2d.scad STD
- shapes3d.scad STD
- drawing.scad STD
- masks2d.scad STD
- masks3d.scad STD
- distributors.scad STD
- color.scad STD
- partitions.scad STD
- miscellaneous.scad STD
Advanced Modeling:
- paths.scad STD
- regions.scad STD
- skin.scad STD
- vnf.scad STD
- beziers.scad
- nurbs.scad
- rounding.scad
- turtle3d.scad
Math:
- math.scad STD
- linalg.scad STD
- vectors.scad STD
- coords.scad STD
- geometry.scad STD
- trigonometry.scad STD
Data Management:
- version.scad STD
- comparisons.scad STD
- lists.scad STD
- utility.scad STD
- strings.scad STD
- structs.scad STD
- fnliterals.scad
Threaded Parts:
Parts:
- ball_bearings.scad
- cubetruss.scad
- gears.scad
- hinges.scad
- joiners.scad
- linear_bearings.scad
- modular_hose.scad
- nema_steppers.scad
- polyhedra.scad
- sliders.scad
- tripod_mounts.scad
- walls.scad
- wiring.scad
STD = Included in std.scad