Втулка с буртиком: скрипт CadQuery (model.py)
Построено нейросетью по описанию: «Втулка с буртиком: наружный диаметр 30 мм, внутренний 20 мм, длина 40 мм, бурт диаметром 40 мм и толщиной 5 мм, фаски 0,5 мм по краям». Здесь все файлы модели: STEP, STL, GLB, архив, скрипт CadQuery и картинки. Сделать свою деталь: aisearch.ru/aimedia/3d-model
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 = 5.0 # Thickness of the flange (mm)
CHAMFER = 0.5 # Edge chamfer (mm)
# The sleeve body is the main cylinder
# We start from z=0. The flange is at the bottom.
# Sleeve height without flange = TOTAL_L - FLANGE_T
sleeve_h = TOTAL_L - FLANGE_T
# Create the flange (bottom part)
flange = (
cq.Workplane("XY")
.circle(FLANGE_D / 2)
.extrude(FLANGE_T)
)
# Create the sleeve body (top part)
body = (
cq.Workplane("XY")
.workplane(offset=FLANGE_T)
.circle(OD / 2)
.extrude(sleeve_h)
)
# Combine flange and body
part = flange.union(body)
# Cut the inner bore through the whole part
part = part.cut(
cq.Workplane("XY")
.circle(ID / 2)
.extrude(TOTAL_L)
)
# Apply chamfers to the edges
# 1. Bottom outer edge of the flange
# 2. Top outer edge of the sleeve
# 3. Top inner edge of the bore
# 4. Bottom inner edge of the bore
part = (
part.edges(">Z").chamfer(CHAMFER) # Top outer and inner
.edges("<Z").chamfer(CHAMFER) # Bottom outer and inner
)
# Final Assembly
assy = cq.Assembly()
assy.add(part, name="flanged_bushing", color=cq.Color(0.7, 0.7, 0.75))
result = assyПохожее
Втулка с буртиком: превью
Построено нейросетью по описанию: «Втулка с буртиком: наружный диаметр 30 мм, внутренний 20 мм, длина 40 мм, бурт диаметром 40 мм и толщиной 5 мм, фаски 0,5 мм по краям». Здесь все файлы модели: STEP, STL, GLB, архив, скрипт CadQuery и картинки. Сделать свою деталь: aisearch.ru/aimedia/3d-model
3d-модельcadВтулка с буртиком: четыре вида
Построено нейросетью по описанию: «Втулка с буртиком: наружный диаметр 30 мм, внутренний 20 мм, длина 40 мм, бурт диаметром 40 мм и толщиной 5 мм, фаски 0,5 мм по краям». Здесь все файлы модели: STEP, STL, GLB, архив, скрипт CadQuery и картинки. Сделать свою деталь: aisearch.ru/aimedia/3d-model
3d-модельcadФланец DN50: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters for DN50 Flat Flange (Standard-like) OD = 140.0 # Outer diameter (mm) THICKNESS = 16.0 # Flange thickness (mm) BORE_D = 57.0 # Central bore diameter (mm) BOLT_CIRCLE_D = 110.0 # Bolt circle diameter (
3d-модельcadУгловой кронштейн с ребром: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters PLATE_T = 5.0 # Thickness of the plates (mm) SHELF_L = 60.0 # Length of the shelves (mm) SHELF_W = 40.0 # Width of the shelves (mm) HOLE_D = 6.5 # Clearance hole diameter (m
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Корпус для платы 70×50 мм: скрипт CadQuery (model.py)
import cadquery as cq import cadkit as ck # Parameters PCB_L, PCB_W = 70.0, 50.0 # PCB dimensions OUTER_L, OUTER_W, OUTER_H = 80.0, 60.0, 30.0 # Outer box dimensions WALL_T = 2.0 # Wall and bottom thickness STANDEE_H = 4.0
3d-модельcad