Compare versions
2 files changed, +7 −3 1.1.0: Materials and finishes: each part is made of its standard's engineering material, with its usual finish.
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | """Parallel dowel pin (ISO 8734 style), plain cylinder with chamfered ends. |
| 2 | Its axis is Z, from the origin up.""" | |
| 2 | Its axis is Z, from the origin up. | |
| 3 | ||
| 4 | Material: hardened steel, ground (C60 from the material library, the closest it has to the standard's 100Cr6).""" | |
| 3 | 5 | from steve import Model |
| 4 | 6 | |
| 5 | 7 | diameter = 4.0 # mm Nominal diameter |
| @@ -12,5 +14,6 @@ | ||
| 12 | 14 | sk.polyline("outline", [(0, 0), (diameter / 2 - chamfer, 0), (diameter / 2, chamfer), (diameter / 2, length - chamfer), |
| 13 | 15 | (diameter / 2 - chamfer, length), (0, length)]) |
| 14 | 16 | model.revolve("pin", "profile", axis="Z") |
| 17 | model.material("steel-1c60", finish="polished") # hardened and ground steel | |
| 15 | 18 | result = model.result() |
| 16 | 19 |
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | name = "steve/dowel-pin" |
| 2 | version = "1.0.0" | |
| 2 | version = "1.1.0" | |
| 3 | 3 | runtime = "steve" |
| 4 | 4 | license = "MIT" |
| 5 | 5 | summary = "Parallel dowel pin with chamfered ends, any diameter and length." |
| 6 | description = "Parallel dowel pin (ISO 8734 style), plain cylinder with chamfered ends.\nIts axis is Z, from the origin up.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread." | |
| 6 | description = "Parallel dowel pin (ISO 8734 style), plain cylinder with chamfered ends.\nIts axis is Z, from the origin up.\n\nMaterial: hardened steel, ground (C60 from the material library, the closest it has to the standard's 100Cr6).\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread." | |
| 7 | 7 | tags = ["pin", "dowel", "iso-8734"] |
| 8 | changes = "Materials and finishes: each part is made of its standard's engineering material, with its usual finish." | |
| 8 | 9 | |
| 9 | 10 | [parameters.diameter] |
| 10 | 11 | type = "number" |