Compare commits
8 Commits
7960320004
...
cli
| Author | SHA1 | Date | |
|---|---|---|---|
| 301421e29f | |||
| e62fa8869f | |||
| 444dd80a73 | |||
| ba7c039d26 | |||
|
|
71c6cc6266 | ||
|
|
e5ec87cf3d | ||
|
|
862458d97e | ||
|
|
b5df3a8e97 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
.venv/
|
||||
|
||||
nametags/
|
||||
stls/
|
||||
24
README.md
Normal file
24
README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# svg2nametag-Ren
|
||||
|
||||
<p align="center">
|
||||
<img src="/pwa-512x512.png" alt="Logo" width="128">
|
||||
</p>
|
||||
|
||||
## Overview
|
||||
**svg2nametag-Ren** converts 2D SVG designs into 3D printable nametags. It automatically splits your design into separate files for different colors, making it easy to print multi-color nametags on printers like the Bambu Lab series.
|
||||
|
||||
For detailed setup and usage guides, please check out the **[Wiki](https://git.randomhack.com/Retro/svg2NameTag-Ren.git)**.
|
||||
|
||||
## Physical Dimensions
|
||||
The program automatically scales all designs to these specific measurements for a consistent, professional look:
|
||||
|
||||
- **Total Width**: 87.80 mm
|
||||
- **Background Thickness**: 3.0 mm
|
||||
- **Background Thickness**: 3.0 mm
|
||||
- **Text/Detail Thickness**: 2.3 mm (includes 0.3mm inset compensation)
|
||||
- **Text/Detail Offset**: 2.7 mm (Text is inset into background for better adhesion)
|
||||
- **Total Height**: 5.0 mm
|
||||
|
||||
## Ways to Use
|
||||
- **Web App**: The easiest way! Just open the web page, drag your files in, and download the results. No installation required.
|
||||
- **Python Tool**: For advanced users who want to process hundreds of files at once using the command line. Requires Python 3.12 or higher and some basic knowledge of the command line.
|
||||
@@ -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
|
||||
@@ -205,6 +205,8 @@ def create_extrusion(paths, height, z_offset=0.0, scale=1.0):
|
||||
else:
|
||||
mesh = trimesh.util.concatenate(meshes)
|
||||
|
||||
|
||||
|
||||
mesh.apply_translation([0, 0, z_offset])
|
||||
return mesh
|
||||
except Exception as e:
|
||||
|
||||
BIN
pwa-512x512.png
Normal file
BIN
pwa-512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user