mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-10-03 18:31:53 +02:00
Merge branch 'jeroenrnl-SC_flex'
This commit is contained in:
BIN
libtest.png
BIN
libtest.png
Binary file not shown.
Before Width: | Height: | Size: 993 KiB After Width: | Height: | Size: 994 KiB |
@@ -3481,6 +3481,7 @@ Shaft couplings
|
|||||||
| `sc_diameter(type)` | Coupling outer diameter |
|
| `sc_diameter(type)` | Coupling outer diameter |
|
||||||
| `sc_diameter1(type)` | Diameter of smaller shaft |
|
| `sc_diameter1(type)` | Diameter of smaller shaft |
|
||||||
| `sc_diameter2(type)` | Diameter of larger shaft |
|
| `sc_diameter2(type)` | Diameter of larger shaft |
|
||||||
|
| `sc_flexible(type)` | Flexible coupling |
|
||||||
| `sc_length(type)` | Coupling length |
|
| `sc_length(type)` | Coupling length |
|
||||||
|
|
||||||
### Modules
|
### Modules
|
||||||
@@ -3494,6 +3495,7 @@ Shaft couplings
|
|||||||
| Qty | Module call | BOM entry |
|
| Qty | Module call | BOM entry |
|
||||||
| ---:|:--- |:---|
|
| ---:|:--- |:---|
|
||||||
| 1 | `shaft_coupling(SC_5x8_rigid)` | Shaft coupling SC_5x8_rigid |
|
| 1 | `shaft_coupling(SC_5x8_rigid)` | Shaft coupling SC_5x8_rigid |
|
||||||
|
| 1 | `shaft_coupling(SC_6x8_flex)` | Shaft coupling SC_6x8_flex |
|
||||||
|
|
||||||
|
|
||||||
<a href="#top">Top</a>
|
<a href="#top">Top</a>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 38 KiB |
@@ -26,6 +26,7 @@ function sc_length(type) = type[1]; //! Coupling length
|
|||||||
function sc_diameter(type) = type[2]; //! Coupling outer diameter
|
function sc_diameter(type) = type[2]; //! Coupling outer diameter
|
||||||
function sc_diameter1(type) = type[3]; //! Diameter of smaller shaft
|
function sc_diameter1(type) = type[3]; //! Diameter of smaller shaft
|
||||||
function sc_diameter2(type) = type[4]; //! Diameter of larger shaft
|
function sc_diameter2(type) = type[4]; //! Diameter of larger shaft
|
||||||
|
function sc_flexible(type) = type[5]; //! Flexible coupling
|
||||||
|
|
||||||
module shaft_coupling(type, colour = "silver") { //! Draw the shaft coupling
|
module shaft_coupling(type, colour = "silver") { //! Draw the shaft coupling
|
||||||
vitamin(str("shaft_coupling(", type[0], "): Shaft coupling ", type[0]));
|
vitamin(str("shaft_coupling(", type[0], "): Shaft coupling ", type[0]));
|
||||||
@@ -34,6 +35,7 @@ module shaft_coupling(type, colour = "silver") { //! Draw the shaft coupling
|
|||||||
radius = sc_diameter(type) / 2;
|
radius = sc_diameter(type) / 2;
|
||||||
r1 = sc_diameter1(type) / 2;
|
r1 = sc_diameter1(type) / 2;
|
||||||
r2 = sc_diameter2(type) / 2;
|
r2 = sc_diameter2(type) / 2;
|
||||||
|
flexible = is_undef(sc_flexible(type)) ? false : sc_flexible(type);
|
||||||
|
|
||||||
grub_length = 3;
|
grub_length = 3;
|
||||||
module grub_screw_positions() {
|
module grub_screw_positions() {
|
||||||
@@ -54,6 +56,11 @@ module shaft_coupling(type, colour = "silver") { //! Draw the shaft coupling
|
|||||||
|
|
||||||
tube(radius, r2, length / 2, false);
|
tube(radius, r2, length / 2, false);
|
||||||
}
|
}
|
||||||
|
if (flexible) {
|
||||||
|
linear_extrude(length/3, center=true, convexity = 20, twist = -5 * 360)
|
||||||
|
translate([r1,0,0])
|
||||||
|
square(radius-r1,1);
|
||||||
|
}
|
||||||
grub_screw_positions()
|
grub_screw_positions()
|
||||||
rotate([180, 0, 0])
|
rotate([180, 0, 0])
|
||||||
cylinder(r = screw_radius(M3_grub_screw), h = 5);
|
cylinder(r = screw_radius(M3_grub_screw), h = 5);
|
||||||
|
@@ -21,9 +21,9 @@
|
|||||||
//! Shaft couplings
|
//! Shaft couplings
|
||||||
//
|
//
|
||||||
|
|
||||||
// L D d1 d2
|
// L D d1 d2 flex?
|
||||||
SC_5x8_rigid = [ "SC_5x8_rigid", 25, 12.5, 5, 8 ];
|
SC_5x8_rigid = [ "SC_5x8_rigid", 25, 12.5, 5, 8, false ];
|
||||||
|
SC_6x8_flex = [ "SC_6x8_flex", 25, 19, 6, 8, true ];
|
||||||
shaft_couplings = [SC_5x8_rigid];
|
shaft_couplings = [SC_5x8_rigid, SC_6x8_flex];
|
||||||
|
|
||||||
use <shaft_coupling.scad>
|
use <shaft_coupling.scad>
|
||||||
|
Reference in New Issue
Block a user