Update config, docs and add box model
- server.py: Output-Verzeichnis default auf models/ relativ zu server.py - README.md: Claude Code statt Desktop, models/-Ordner, korrekte settings.json - models/box.py: Offene Box 30x30x20mm, alle Maße als Variablen Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+8
-15
@@ -1,23 +1,16 @@
|
||||
"""
|
||||
Offene Box: 40 x 60 x 50 mm, Wand- und Bodenstärke 2 mm
|
||||
"""
|
||||
import cadquery as cq
|
||||
from cadquery import exporters
|
||||
from pathlib import Path
|
||||
|
||||
OUTPUT = Path.home() / "3d-models"
|
||||
OUTPUT.mkdir(exist_ok=True)
|
||||
|
||||
wall = 2
|
||||
# Maße
|
||||
breite = 30 # mm (X)
|
||||
tiefe = 30 # mm (Y)
|
||||
hoehe = 20 # mm (Z)
|
||||
wandstaerke = 2 # mm
|
||||
|
||||
result = (
|
||||
cq.Workplane("XY")
|
||||
.box(40, 60, 50)
|
||||
.box(breite, tiefe, hoehe)
|
||||
.faces(">Z")
|
||||
.shell(-wall)
|
||||
.shell(-wandstaerke)
|
||||
)
|
||||
|
||||
out = OUTPUT / "box_40x60x50.stl"
|
||||
exporters.export(result, str(out))
|
||||
print(f"STL gespeichert: {out}")
|
||||
print(f"Größe: {out.stat().st_size // 1024} KB")
|
||||
show_object(result)
|
||||
|
||||
Reference in New Issue
Block a user