Add text inset logic for better 3D print adhesion

- Increase text thickness to 2.3mm (base 2.0mm + 0.3mm inset compensation)
- Adjust text Z offset to 2.7mm to inset text into background
- Total height remains at 5mm
- Update README to reflect new text thickness
This commit is contained in:
2026-04-11 12:38:19 -04:00
parent ba7c039d26
commit 444dd80a73
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ The program automatically scales all designs to these specific measurements for
- **Total Width**: 87.80 mm
- **Background Thickness**: 3.0 mm
- **Text/Detail Thickness**: 2.0 mm
- **Text/Detail Thickness**: 2.3 mm (includes 0.3mm inset compensation)
- **Text/Detail Offset**: 3.0 mm (Text sits at 4mm from the bottom)
- **Total Height**: 5.0 mm (Text sits 3mm high and extends 2mm up)

View File

@@ -15,8 +15,8 @@ logger = logging.getLogger(__name__)
# Constants based on specs
BACKGROUND_THICKNESS = 3.0
TEXT_THICKNESS = 2.0
TEXT_Z_OFFSET = 3.0 # Starts on top of background
TEXT_THICKNESS = 2.0 + 0.3 # 2.3mm (base 2.0 + 0.3mm for inset compensation)
TEXT_Z_OFFSET = 3.0 - 0.3 # 2.7mm - starts inset into background
CURVE_RESOLUTION = 64 # number of segments per circle
# SVG Class mappings