1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-connector_peg.md

60 lines
1.0 KiB
Markdown
Raw Normal View History

2019-09-21 10:16:45 +08:00
# connector_peg
Create a connector peg.
2021-02-24 21:09:54 +08:00
![connector_peg](images/lib3x-connector_peg-3.JPG)
2019-09-21 13:08:51 +08:00
2019-09-21 10:16:45 +08:00
**Since:** 2.1
## Parameters
- `radius` : The shaft radius of the peg.
2019-09-21 19:21:48 +08:00
- `height` : The height of the pag. Default to `2.5 * radius`.
2019-09-21 10:16:45 +08:00
- `spacing` : The spacing between the peg and void component. Default to `0.5`.
- `void` : The void component for differencing. It's used to create a cavity for a peg. Default to `false`.
- `ends` : Default to `false`. To create a double-ended peg, set it to `true`.
## Examples
2022-06-06 13:11:46 +08:00
use <part/connector_peg.scad>
2019-09-21 10:16:45 +08:00
radius = 2.5;
spacing = 0.5;
$fn = 48;
connector_peg(
radius = radius,
spacing = spacing
);
%connector_peg(
radius = radius,
spacing = spacing,
void = true
);
2021-02-24 21:09:54 +08:00
![connector_peg](images/lib3x-connector_peg-1.JPG)
2019-09-21 10:16:45 +08:00
2022-06-06 13:11:46 +08:00
use <part/connector_peg.scad>
2019-09-21 10:16:45 +08:00
radius = 2.5;
spacing = 0.5;
$fn = 48;
connector_peg(
radius = radius,
spacing = spacing,
ends = true
);
%connector_peg(
radius = radius,
spacing = spacing,
ends = true,
void = true
);
2021-02-24 21:09:54 +08:00
![connector_peg](images/lib3x-connector_peg-2.JPG)