Skip to content

Commit 9de2ba9

Browse files
committed
updating autogen stamps
1 parent 977b351 commit 9de2ba9

32 files changed

+54395
-72446
lines changed

out/html/demo.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="language_code">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="model" content="demo.stl"/>
6+
7+
<title>OpenSCAD STL Preview</title>
8+
<style>
9+
body {
10+
margin: 0;
11+
}
12+
13+
html, body {
14+
background-color: transparent;
15+
}
16+
</style>
17+
</head>
18+
<body>
19+
<script type="module" src="main.js"></script>
20+
</body>
21+
</html>

out/html/main.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="language_code">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="model" content="text2stamp_base-stamp.stl"/>
6+
7+
<title>OpenSCAD STL Preview</title>
8+
<style>
9+
body {
10+
margin: 0;
11+
}
12+
13+
html, body {
14+
background-color: #1E1F22;
15+
}
16+
</style>
17+
</head>
18+
<body>
19+
<script type="module" src="main.js"></script>
20+
</body>
21+
</html>

out/html/text2stamp_base-stamp.stl

Whitespace-only changes.

text2stamp/README.md

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,14 @@ Total rendering time: 0:00:00.277
3636
Stamp 'alice' generated successfully as 'out/alice.stl'.
3737

3838
```
39-
40-
To be prompted for the values needed to generate the stamp, just run the script without any parameters:
41-
42-
```bash
43-
$ ./t2s
44-
Enter stamp (default: printables): erika
45-
Enter size (default: 30):
46-
Generating Stamp 'erika' with size 30...
47-
ECHO: version = [2021, 1, 0]
48-
Geometries in cache: 4
49-
Geometry cache size in bytes: 65512
50-
CGAL Polyhedrons in cache: 1
51-
CGAL cache size in bytes: 585936
52-
Total rendering time: 0:00:00.261
53-
Top level object is a 3D object:
54-
Simple: yes
55-
Vertices: 434
56-
Halfedges: 1302
57-
Edges: 651
58-
Halffacets: 454
59-
Facets: 227
60-
Volumes: 2
61-
Stamp 'erika' generated successfully as 'out/erika.stl'.
62-
63-
```
39+
### Script Parameters
40+
The script accepts the following parameters:
41+
42+
- `--stamp`: The text to be used for the stamp. Default is "printables".
43+
- `--size`: The approximate font size for the stamp. Default is 30.
44+
- `--font`: The font used for the stamp. Default is "Liberation Mono".
45+
- `--withborder`: A boolean value to add a border around the stamp. Default is false.
46+
- `--output_dir`: Directory where to output the STL file. Default is "text2stamp/out".
6447

6548
## Batch Scripts
6649
Some example scripts for batch stamp generation were included in the `examples` folder:

0 commit comments

Comments
 (0)