Маховичок с выемками: скрипт CadQuery (model.py)
Построено нейросетью по описанию: «Маховичок: диск диаметром 60 мм и толщиной 12 мм, по краю шесть полукруглых выемок радиусом 6 мм для пальцев, ступица диаметром 22 мм выступает на 8 мм, сквозное отверстие 8 мм». Здесь все файлы модели: STEP, STL, GLB, архив, скрипт CadQuery и картинки. Сделать свою деталь: aisearch.ru/aimedia/3d-model
import cadquery as cq
import cadkit as ck
import math
# Parameters
DISK_D = 60.0 # Diameter of the flywheel disk
DISK_T = 12.0 # Thickness of the disk
HUB_D = 22.0 # Diameter of the hub
HUB_H = 8.0 # Height of the hub protruding from the disk
BORE_D = 8.0 # Through-hole diameter
FINGER_R = 6.0 # Radius of the semi-circular finger notches
FINGER_COUNT = 6 # Number of notches
# 1. Create the main disk
disk = cq.Workplane("XY").circle(DISK_D / 2).extrude(DISK_T)
# 2. Create the finger notches
# Positioned so the center is on the edge of the disk to create a perfect semi-circle
notch_offset = DISK_D / 2
notch = (
cq.Workplane("XY")
.workplane(offset=DISK_T / 2)
.center(notch_offset, 0)
.circle(FINGER_R)
.extrude(DISK_T, both=True)
)
# Subtract the notches from the disk
flywheel = disk
for i in range(FINGER_COUNT):
angle = i * (360.0 / FINGER_COUNT)
flywheel = flywheel.cut(notch.rotate((0, 0, 0), (0, 0, 1), angle))
# 3. Create the hub
hub = (
cq.Workplane("XY")
.workplane(offset=DISK_T)
.circle(HUB_D / 2)
.extrude(HUB_H)
)
# Combine disk and hub
flywheel = flywheel.union(hub)
# 4. Create the through-hole
flywheel = (
flywheel.faces(">Z")
.workplane()
.hole(BORE_D)
)
# 5. Finishing touches
# Use only the most basic, standard selectors that are guaranteed to exist.
# Chamfer the top edge of the hub and the bottom edge of the disk.
flywheel = flywheel.edges(">Z").chamfer(0.5)
flywheel = flywheel.edges("<Z").chamfer(0.5)
# To avoid selector errors in the sandbox, we will not use complex selectors
# for the hub-disk transition. Instead, we can use a simple fillet on the
# hub's top edge (already done by >Z) and the disk's bottom edge (already done by <Z).
# If a fillet is needed at the hub base, the most robust way without
# specialized selectors is to create the hub with a fillet before union.
# Since the model is already built, we will stick to the basic chamfers
# to ensure the script runs successfully.
# Assembly for final result
assy = cq.Assembly()
assy.add(flywheel, name="flywheel", color=cq.Color(0.7, 0.7, 0.75))
result = assyПохожее
Маховичок с выемками: превью
Построено нейросетью по описанию: «Маховичок: диск диаметром 60 мм и толщиной 12 мм, по краю шесть полукруглых выемок радиусом 6 мм для пальцев, ступица диаметром 22 мм выступает на 8 мм, сквозное отверстие 8 мм». Здесь все файлы модели: STEP, STL, GLB, архив, скрипт CadQuery и картинки. Сделать свою деталь: aisearch.ru/aimedia/3d-model
3d-модельcadМаховичок с выемками: четыре вида
Построено нейросетью по описанию: «Маховичок: диск диаметром 60 мм и толщиной 12 мм, по краю шесть полукруглых выемок радиусом 6 мм для пальцев, ступица диаметром 22 мм выступает на 8 мм, сквозное отверстие 8 мм». Здесь все файлы модели: STEP, STL, GLB, архив, скрипт CadQuery и картинки. Сделать свою деталь: aisearch.ru/aimedia/3d-model
3d-модельcadКрышка корпуса 80×60 мм: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters PLATE_L = 80.0 # Length of the cover PLATE_W = 60.0 # Width of the cover PLATE_T = 3.0 # Thickness of the main plate RIM_H = 4.0 # Height of the bottom rim RIM_T = 2.0 # Thickness of
3d-модельcadВтулка с буртиком: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters OD = 30.0 # Outer diameter of the sleeve (mm) ID = 20.0 # Inner diameter (bore) (mm) TOTAL_L = 40.0 # Total length of the sleeve (mm) FLANGE_D = 40.0 # Diameter of the flange (mm) FLANGE_T =
3d-модельcadСтупенчатый вал со шпоночным пазом: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters # Shaft dimensions S1_D = 20.0 # Diameter of first step S1_L = 40.0 # Length of first step S2_D = 25.0 # Diameter of second (middle) step S2_L = 80.0 # Length of second step S3_D = 20.0 # Diameter of third ste
3d-модельcadЗубчатая рейка, модуль 2: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck import math # Parameters MODULE = 2.0 # Module of the gear teeth TEETH_COUNT = 60 # Number of teeth for the 120mm length (120 / (2*M)) LENGTH = 120.0 # Total length of the rack SECTION_W = 20.0
3d-модельcad