"""Precision shaft: a plain round shaft of diameter d and length l for linear bearings, centred on the origin with its axis along Z (ends at z = +-length/2). Tips' chamfers aren't modelled: no source gives their size.""" from steve import Model diameter = 8 # mm Shaft diameter length = 200 # mm Shaft length model = Model() with model.sketch("section", on="XY", name="Section") as sk: sk.circle("outer", (0, 0), diameter / 2) model.extrude("shaft", "section", distance=length, both=True, name="Shaft") model.material("steel-generic", color="#c6c9cd") result = model.result()