Маховичок с выемками: скрипт 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 # Main disk diameter
DISK_T = 12.0 # Main disk thickness
HUB_D = 22.0 # Hub diameter
HUB_H = 8.0 # Hub protrusion height (above the disk)
BORE_D = 8.0 # Through hole diameter
FINGER_R = 6.0 # Radius of finger notches
FINGER_COUNT = 6 # Number of notches
FILLET_R = 0.5 # Small fillet for edges
# 1. Create the main disk
disk = (
cq.Workplane("XY")
.circle(DISK_D / 2)
.extrude(DISK_T)
)
# 2. Create the finger notches
# We create a cylinder for the notch and place it on the perimeter
notch_tool = (
cq.Workplane("XY")
.circle(FINGER_R)
.extrude(DISK_T + 2)
)
# Subtract notches from disk using a loop
flywheel = disk
for i in range(FINGER_COUNT):
angle = i * (360 / FINGER_COUNT)
x = (DISK_D / 2) * math.cos(math.radians(angle))
y = (DISK_D / 2) * math.sin(math.radians(angle))
# Translate the notch tool and subtract it
flywheel = flywheel.cut(notch_tool.translate((x, y, -1)))
# 3. Create the hub
# Hub is a cylinder on top of the disk
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
# Bore goes through the entire height
flywheel = (
flywheel.faces(">Z")
.workplane()
.hole(BORE_D)
)
# 5. Finishing touches
# Instead of complex filters, we use simple selectors for the top and bottom edges
# Fillet the top edge of the hub
flywheel = flywheel.edges(">Z").fillet(FILLET_R)
# Fillet the bottom edge of the disk
flywheel = flywheel.edges("<Z").fillet(FILLET_R)
# Add a small chamfer to the bore entrance
flywheel = flywheel.faces(">Z").workplane().chamfer(BORE_D, 0.5)
# Final Assembly
assy = cq.Assembly()
assy.add(flywheel, name="flywheel", color=cq.Color(0.7, 0.7, 0.7))
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Зубчатая рейка, модуль 2: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck import math # Parameters BAR_L = 120.0 # Length of the rack BAR_W = 20.0 # Width of the rack BAR_H = 20.0 # Height of the rack NUM_TEETH = 19 # Number of teeth PITCH = 6.28 # Tooth pitch (mm) TOOTH_H = 4.5
3d-модельcadВтулка с буртиком: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters BUSHING_OD = 30.0 # Outer diameter of the main cylinder BUSHING_L = 40.0 # Length of the main cylinder part FLANGE_OD = 40.0 # Diameter of the flange (бурт) FLANGE_T = 5.0 # Thickness of the flang
3d-модельcadКрышка корпуса 80×60 мм: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters WIDTH = 80.0 # Total width (X) DEPTH = 60.0 # Total depth (Y) THICKNESS = 3.0 # Main plate thickness RIM_HEIGHT = 4.0 # Height of the mating rim RIM_THICKNESS = 2.0 # Thickness of the rim wall RIM_O
3d-модельcadМонтажная плита с пазом: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters PLATE_L = 120.0 # Length of the plate (mm) PLATE_W = 80.0 # Width of the plate (mm) PLATE_T = 10.0 # Thickness of the plate (mm) HOLE_D = 8.0 # Diameter of mounting holes (mm) HOLE_OFFSET = 1
3d-модельcad