Fix SVG to STL conversion for multi-color 3D printing
Split green features into separate non-overlapping parts to fix slicing issues. Key changes: - Split green mask into icon (top) and text (bottom) using white text as separator - Create 4 separate parts: base, green_icon, white_text, green_text - Parts positioned at same Z height but don't overlap in XY space - Assembly structure matches nameplate.3mf (components with identity transforms) - Fixed polygon detection: reduced min_size, added preserve_topology - Added mesh repair logic to ensure watertight meshes - Updated material maps for new part names Files: - svg_logo_to_stl.py: Main conversion script with green split logic - Color logo - no background.svg: Source SVG file - command.txt: Usage documentation with working parameters - requirements.txt: Python dependencies - .gitignore: Exclude output files and debug images Minimum scale: 254mm width for 0.4mm nozzle (smaller features too thin to print) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
50
.gitignore
vendored
Normal file
50
.gitignore
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.so
|
||||
.Python
|
||||
env/
|
||||
venv/
|
||||
.venv/
|
||||
ENV/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# Virtual Environment
|
||||
.venv/
|
||||
venv/
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Output files
|
||||
*.stl
|
||||
*.3mf
|
||||
*_output*
|
||||
logo_output*
|
||||
|
||||
# Temporary files
|
||||
*.tmp
|
||||
*.log
|
||||
Reference in New Issue
Block a user