Compare versions
2 files changed, +8 −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 | """ISO 4032 hex nut. Envelope: hex prism with a plain bore at the thread's nominal diameter. |
| 2 | It sits on the XY plane, centred on the origin.""" | |
| 2 | It sits on the XY plane, centred on the origin. | |
| 3 | ||
| 4 | Material: property class 8 carbon steel (C35), zinc plated.""" | |
| 3 | 5 | from steve import Model |
| 4 | 6 | |
| 5 | 7 | size = "M3" # Thread size |
| @@ -35,5 +37,7 @@ | ||
| 35 | 37 | sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False) |
| 36 | 38 | sk.circle("bore", (0, 0), d / 2) |
| 37 | 39 | model.extrude("nut", "nut_sketch", distance=m) |
| 40 | model.material("steel-1c35") # class 8 nut steel | |
| 41 | model.appearance(color="#c9d1d9", metalness=1.0, roughness=0.3) # clear zinc plating | |
| 38 | 42 | result = model.result() |
| 39 | 43 |
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | name = "steve/hex-nut" |
| 2 | version = "1.0.0" | |
| 2 | version = "1.1.0" | |
| 3 | 3 | runtime = "steve" |
| 4 | 4 | license = "MIT" |
| 5 | 5 | summary = "Hex nut, ISO 4032, M2 to M12." |
| 6 | description = "ISO 4032 hex nut. Envelope: hex prism with a plain bore at the thread's nominal diameter.\nIt sits on the XY plane, centred on the origin.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread." | |
| 6 | description = "ISO 4032 hex nut. Envelope: hex prism with a plain bore at the thread's nominal diameter.\nIt sits on the XY plane, centred on the origin.\n\nMaterial: property class 8 carbon steel (C35), zinc plated.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread." | |
| 7 | 7 | tags = ["fastener", "nut", "iso-4032", "metric"] |
| 8 | changes = "Materials and finishes: each part is made of its standard's engineering material, with its usual finish." | |
| 8 | 9 | |
| 9 | 10 | [parameters.size] |
| 10 | 11 | type = "choice" |