"""Cylindrical roller bearing, NU2 and NU3 series, bore up to 50 mm: envelope for assemblies, one solid with the boundary dimensions bore d, outside diameter D and width B. Rolling elements, cage and the gaps between the rings are not modelled. Axis along Z, centred on the origin.""" from steve import Model designation = "NU208" # Bearing number # number: (d, D, B). NTN Ball and Roller Bearings CAT. No. 2203-3/E (2024), pp. B-71 to B-72 (PDF pages 147 and 148), boundary dimensions. BEARINGS = {"NU204": (20, 47, 14), "NU205": (25, 52, 15), "NU206": (30, 62, 16), "NU207": (35, 72, 17), "NU208": (40, 80, 18), "NU209": (45, 85, 19), "NU210": (50, 90, 20), "NU304": (20, 52, 15), "NU305": (25, 62, 17), "NU306": (30, 72, 19), "NU307": (35, 80, 21), "NU308": (40, 90, 23), "NU309": (45, 100, 25), "NU310": (50, 110, 27)} d, D, width = BEARINGS[designation] model = Model() with model.sketch("rings", on="XY", name="Rings") as sk: sk.circle("outer", (0, 0), D / 2) sk.circle("bore", (0, 0), d / 2) model.extrude("body", "rings", distance=width, both=True, name="Bearing") model.material("steel-generic", color="#b9bdc2") result = model.result()