stack3js 0.0.0-stage → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMMAND.md +145 -0
- package/LICENSE +21 -0
- package/README.md +304 -2
- package/THIRD-PARTY-LICENSES.md +100 -0
- package/bin/stack3.mjs +5437 -0
- package/blender/import_stack.py +89 -0
- package/examples/future-tank.stack3.json +1 -0
- package/examples/traffic-cone-4view.png +0 -0
- package/meshing/blocks.py +82 -0
- package/meshing/branches.py +62 -0
- package/meshing/dexel.py +67 -0
- package/meshing/field_data.py +19 -0
- package/meshing/finish_blender.py +203 -0
- package/meshing/finishing.py +155 -0
- package/meshing/geometry.py +71 -0
- package/meshing/guided.py +150 -0
- package/meshing/implicit.py +178 -0
- package/meshing/intersection.py +33 -0
- package/meshing/material.py +115 -0
- package/meshing/mesh.py +103 -0
- package/meshing/network.py +136 -0
- package/meshing/regularization.py +213 -0
- package/meshing/sections.py +165 -0
- package/meshing/signed_distance.py +93 -0
- package/package.json +32 -4
- package/references/hard-surface/README.md +40 -0
- package/references/hard-surface/atlas/concrete-barrier-4view.png +0 -0
- package/references/hard-surface/atlas/preview.pipeline.yaml +14 -0
- package/references/hard-surface/case-studies/benchmark/README.md +22 -0
- package/references/hard-surface/case-studies/benchmark/lod-bevel.pipeline.yaml +258 -0
- package/references/hard-surface/finishing/exports.yaml +10 -0
- package/references/hard-surface/finishing/finish-lod.pipeline.yaml +33 -0
- package/references/hard-surface/finishing/inputs/stack/stack.json +1 -0
- package/references/hard-surface/finishing/inputs/stack/stack.png +0 -0
- package/references/hard-surface/finishing/regularize.pipeline.yaml +46 -0
- package/references/hard-surface/measured-depth/sdf/compare.pipeline.yaml +12 -0
- package/references/hard-surface/measured-depth/sdf/inputs/field.npy +0 -0
- package/references/hard-surface/measured-depth/sdf/inputs/stack/stack.json +1 -0
- package/references/hard-surface/measured-depth/sdf/inputs/stack/stack.png +0 -0
- package/references/hard-surface/measured-depth/sdf/inputs/truth.json +1 -0
- package/references/hard-surface/measured-depth/sdf/sdf.guide.json +3 -0
- package/references/hard-surface/measured-depth/triple-dexel/compare.pipeline.yaml +12 -0
- package/references/hard-surface/measured-depth/triple-dexel/dexel.guide.json +3 -0
- package/references/hard-surface/measured-depth/triple-dexel/inputs/fixture.json +22 -0
- package/references/hard-surface/measured-depth/triple-dexel/inputs/stack/stack.json +22 -0
- package/references/hard-surface/measured-depth/triple-dexel/inputs/stack/stack.png +0 -0
- package/references/hard-surface/measured-depth/triple-dexel/inputs/triple-dexel.npz +0 -0
- package/references/hard-surface/schema/pipeline-fragment.schema.json +5 -0
- package/references/hard-surface/schema/pipeline.schema.json +181 -0
- package/schema/pipeline-fragment.schema.json +5 -0
- package/schema/pipeline.schema.json +181 -0
- package/verification/assembly.py +96 -0
- package/verification/landmarks.py +53 -0
- package/verification/panels.py +137 -0
- package/verification/projections.py +135 -0
- package/verification/verify.py +108 -0
- package/viewer/dist/THIRD-PARTY-LICENSES.md +174 -0
- package/viewer/dist/assets/GLTFExporter-xdVCArY-.js +1 -0
- package/viewer/dist/assets/ant-mech-angled-leg-4view-BO2qt1_k.png +0 -0
- package/viewer/dist/assets/ant-mech-body-4view-D9xVPpbc.png +0 -0
- package/viewer/dist/assets/ant-mech-center-leg-4view-BcphjF_G.png +0 -0
- package/viewer/dist/assets/compare-B6DWTZS9.css +1 -0
- package/viewer/dist/assets/compare-Du4RoRQO.js +6 -0
- package/viewer/dist/assets/compare.worker-CgJq-znx.js +21 -0
- package/viewer/dist/assets/concrete-barrier-4view-7PsO3Ftq.png +0 -0
- package/viewer/dist/assets/emscripten-module-uFzwHH0Y.wasm +0 -0
- package/viewer/dist/assets/emscripten-module.browser-BcR5qphc.js +1 -0
- package/viewer/dist/assets/ffi-Boa1QuFa.js +1 -0
- package/viewer/dist/assets/fillet-rover-body-4-view-Chk8Mx4R.png +0 -0
- package/viewer/dist/assets/fillet-rover-wheel-4-view-B-F8flOC.png +0 -0
- package/viewer/dist/assets/hull-4view-BPPqJYUz.png +0 -0
- package/viewer/dist/assets/hull-base-color-4view-DrQmdT3h.png +0 -0
- package/viewer/dist/assets/hull-clay-4view-3Cu-4Hvr.png +0 -0
- package/viewer/dist/assets/hull-depth-4view-DCOdT5ev.png +0 -0
- package/viewer/dist/assets/hull-normal-4view-CvLaFITy.png +0 -0
- package/viewer/dist/assets/inspection-robot-body-4-view-CLMaHFYm.png +0 -0
- package/viewer/dist/assets/inspection-robot-wheel-4-view-27wRsxcs.png +0 -0
- package/viewer/dist/assets/plastic-barrier-4view-DQkTBW_i.png +0 -0
- package/viewer/dist/assets/presets-jXE0t1fU.js +1 -0
- package/viewer/dist/assets/preview-cache-BKV0EZl9.js +1 -0
- package/viewer/dist/assets/project-BzR9Ensg.css +1 -0
- package/viewer/dist/assets/project-DtHHhfo-.js +17 -0
- package/viewer/dist/assets/reconstruct.worker-ONc9GyFO.js +21 -0
- package/viewer/dist/assets/script-engine-Bs3azDYZ.js +6 -0
- package/viewer/dist/assets/style-CMUT8CmM.css +1 -0
- package/viewer/dist/assets/style-D6eZHs3D.js +4004 -0
- package/viewer/dist/assets/tank-hull-4view-B4sMMkP5.png +0 -0
- package/viewer/dist/assets/tank-track-4view-DAIiMTy3.png +0 -0
- package/viewer/dist/assets/tank-turret-4view-Cx0FuNFu.png +0 -0
- package/viewer/dist/assets/traffic-cone-4view-DG-TkITx.png +0 -0
- package/viewer/dist/assets/viewer-DIjS0No7.js +2 -0
- package/viewer/dist/assets/wet-floor-sign-4view-CWJDyeTX.png +0 -0
- package/viewer/dist/compare.html +47 -0
- package/viewer/dist/examples/traffic-cone-4view.png +0 -0
- package/viewer/dist/index.html +148 -0
- package/viewer/dist/playground/index.html +3342 -0
- package/viewer/dist/project.html +83 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Hard-surface recipes
|
|
2
|
+
|
|
3
|
+
## Discover features and run a recipe
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
stack3 help pipeline
|
|
7
|
+
stack3 capabilities --json
|
|
8
|
+
stack3 pipeline schema > pipeline.schema.json
|
|
9
|
+
stack3 pipeline schema fragment > pipeline-fragment.schema.json
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The capabilities response lists available recipe paths and the backend each recipe needs. Copy the `hard-surface` directory to a writable workspace to keep inputs, includes, and editor schema hints together. Run the commands below from the copied `finishing` directory.
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
stack3 pipeline render finish-lod.pipeline.yaml > resolved.yaml
|
|
16
|
+
stack3 pipeline run resolved.yaml
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`render` resolves values and checks dependencies without opening the geometry inputs. `run` creates outputs. Node paths are relative to the root recipe. Include paths are relative to the file declaring them. For overrides, pass `-f settings.yaml`. Later values files take precedence. Use the `recipe` schema for a root or resolved recipe and `fragment` for included files.
|
|
20
|
+
|
|
21
|
+
## Sample groups
|
|
22
|
+
|
|
23
|
+
| Group | Recipe | Result and requirements |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| **RGB atlas** | [atlas/preview.pipeline.yaml](atlas/preview.pipeline.yaml) | Node visual-hull occupancy, Surface Nets, and a GLB preview of the bundled concrete barrier. Start here for a Node-only run. |
|
|
26
|
+
| **Hard-surface finishing** | [finishing/finish-lod.pipeline.yaml](finishing/finish-lod.pipeline.yaml) | Saved housing stack → Hermite DC and QEF → plane and primitive fitting → Blender bevel, planar dissolve and vertex AO. Exports detail, a lower-budget LOD, and three GPU instances of the LOD. Uses uv or `STACK3_PYTHON` and Blender, discoverable through `BLENDER_BIN`. |
|
|
27
|
+
| **Guided regularization** | [finishing/regularize.pipeline.yaml](finishing/regularize.pipeline.yaml) | Fit front and side planes, a cylindrical bore and its circular rim, and a square pocket rim. Jointly refine the perpendicular relation between the planes. Uses uv or `STACK3_PYTHON`. |
|
|
28
|
+
| **Benchmark case with selected rim bevels** | [case-studies/benchmark/README.md](case-studies/benchmark/README.md) | Run QEM first, then bevel the through-bore and cylindrical-post rims. Includes the tested YAML and geometry measurements. Uses uv or `STACK3_PYTHON` and Blender. |
|
|
29
|
+
| **Measured SDF** | [measured-depth/sdf/compare.pipeline.yaml](measured-depth/sdf/compare.pipeline.yaml) | Feed the same registered 3D signed-distance grid to Hermite DC and Carrera DC. The bundled rotated box has an analytic SDF and recorded reference dimensions. Carrera uses Gpytoolbox 0.3.8. |
|
|
30
|
+
| **Triple-Dexel** | [measured-depth/triple-dexel/compare.pipeline.yaml](measured-depth/triple-dexel/compare.pipeline.yaml) | Compare MC33 from saved occupancy with Hermite DC using registered X/Y/Z crossings and outward normals. The prepared benchmark includes five openings and five upper protrusions. Its fixture records authored hole depths and through-hole assumptions. Uses uv or `STACK3_PYTHON`. |
|
|
31
|
+
|
|
32
|
+
Applied finishing stages print diagnostics. Check for a retained preceding stage when fit, bevel, dissolve, or QEM would compromise the surface. Check actual triangles against the LOD target. Review thin regions, openings, disconnected components, pivot, textures, and normal seams in the exported GLB.
|
|
33
|
+
|
|
34
|
+
## Guides and representation
|
|
35
|
+
|
|
36
|
+
- The [recipe schema](schema/pipeline.schema.json) describes pipeline nodes, method names, input paths, and finish settings. The [fragment schema](schema/pipeline-fragment.schema.json) references the recipe schema beside it. CLI schema exports are standalone JSON.
|
|
37
|
+
- Hermite DC accepts a guide with either `field` or `dexel`. An SDF `.npy` has XYZ shape `(width + 2, depth + 2, layers + 2)`, one empty cell of padding and signed scene-unit distances with negative values inside. A Triple-Dexel `.npz` has scalar `version: 1`, XYZ `grid`, `origin`, `step`, and `<axis>_offsets`, `<axis>_depth`, `<axis>_normals` for each axis. Rays point in the positive axis direction. Store depths from the lower grid plane and flatten transverse ray coordinates in XYZ order with that axis omitted. Depth pairs are ordered, with one outward XYZ unit normal per crossing. The occupancy must match the saved stack at cell centers. Guide paths are relative to their guide JSON.
|
|
38
|
+
- A 4-view RGB atlas supplies appearance and silhouettes. When depth or occluded geometry is required, use registered measurements or a fixture with explicitly authored geometry. The measured samples bundle their inputs so they run without a separate fixture generator.
|
|
39
|
+
- GLB export uses projected color from saved stack RGB. The finishing sample generates area-weighted shading normals and vertex AO in `COLOR_0`. A `write-glb` node's `instances` are translations in glTF XYZ units.
|
|
40
|
+
- Guided feature hints use pivot-relative stack XYZ scene units. Start with a small tolerance and just the features that can be located independently. Check final aperture sizes, through-hole continuity and pocket depths when applying a fit or a plane relation.
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../schema/pipeline.schema.json
|
|
2
|
+
version: 1
|
|
3
|
+
values:
|
|
4
|
+
atlas: ./concrete-barrier-4view.png
|
|
5
|
+
output: ./out/preview.glb
|
|
6
|
+
nodes:
|
|
7
|
+
- id: source
|
|
8
|
+
type: reconstruct-stack
|
|
9
|
+
path: '{{ .Values.atlas }}'
|
|
10
|
+
layout: top,left,front,rear
|
|
11
|
+
resolution: 48
|
|
12
|
+
layers: 32
|
|
13
|
+
- { id: surface, type: extract-mesh, input: source, method: surface-nets }
|
|
14
|
+
- { id: export, type: write-glb, input: surface, path: '{{ .Values.output }}' }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Hard-surface benchmark with selective rim bevels
|
|
2
|
+
|
|
3
|
+
Use [lod-bevel.pipeline.yaml](lod-bevel.pipeline.yaml) with the bundled benchmark stack and Triple-Dexel data. Copy the hard-surface reference folder to a writable location to keep recipe, guide and input paths together.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
stack3 pipeline render lod-bevel.pipeline.yaml > resolved.yaml
|
|
7
|
+
stack3 pipeline run resolved.yaml
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Run these commands in the copied `case-studies/benchmark` directory. Check `stack3 capabilities --json` for `benchmark-beveled-lod`. If the installed CLI lacks it, run `npm run cli -- pipeline …` from the source checkout with the copied recipe's absolute path. Hermite DC and regularization use the Python meshing backend. The LOD operation uses Blender and honors `BLENDER_BIN`.
|
|
11
|
+
|
|
12
|
+
## Settings that passed
|
|
13
|
+
|
|
14
|
+
1. Use measured Hermite crossings and normals from the bundled Triple-Dexel fixture. Its authored design has five upper protrusions and five front openings.
|
|
15
|
+
2. Use `regularization.tolerance: 0.006` in pivot-relative stack scene units.
|
|
16
|
+
3. Reserve geometry for beveling with `lodBevel.preTriangleBudget: 1900`.
|
|
17
|
+
4. Bevel the front through-bore rim and the cylindrical-post top rim with `bevelWidth: 0.0025` and `bevelSegments: 2`. These offsets correspond to 0.15 mm at the benchmark scale. The recipe declares each center, axis, radius and selection tolerance in scene units.
|
|
18
|
+
5. Verify the final `triangleBudget: 2400` and the feature geometry.
|
|
19
|
+
|
|
20
|
+
The verified GLB uses **2,356 triangles**. It retains five raised regions, one through-hole and four blind pockets. The four pocket center depths are about 10, 14, 15 and 12 mm. The opening IoUs range from 0.9834 to 1.0. The Blender check found zero open edges, non-manifold edges, inconsistent edges or zero-area triangles.
|
|
21
|
+
|
|
22
|
+
Use the same settings for this fixture. For another asset, reselect the rims and verify width, topology and feature measurements after QEM. The final triangle cap is enforced after beveling. Lower the pre-budget if the selected bevels require additional room.
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../../schema/pipeline.schema.json
|
|
2
|
+
version: 1
|
|
3
|
+
values:
|
|
4
|
+
stack: ../../measured-depth/triple-dexel/inputs/stack
|
|
5
|
+
guide: ../../measured-depth/triple-dexel/dexel.guide.json
|
|
6
|
+
output: ./out/lod.glb
|
|
7
|
+
preTriangleBudget: 1900
|
|
8
|
+
triangleBudget: 2400
|
|
9
|
+
bevelWidth: 0.0025
|
|
10
|
+
nodes:
|
|
11
|
+
- id: source
|
|
12
|
+
type: load-stack
|
|
13
|
+
path: "{{ .Values.stack }}"
|
|
14
|
+
- id: regularized
|
|
15
|
+
type: extract-mesh
|
|
16
|
+
input: source
|
|
17
|
+
method: hermite-dc
|
|
18
|
+
guide: "{{ .Values.guide }}"
|
|
19
|
+
finish:
|
|
20
|
+
regularization:
|
|
21
|
+
tolerance: 0.006
|
|
22
|
+
features:
|
|
23
|
+
- id: front
|
|
24
|
+
type: plane
|
|
25
|
+
normal:
|
|
26
|
+
- 0
|
|
27
|
+
- 1
|
|
28
|
+
- 0
|
|
29
|
+
bounds:
|
|
30
|
+
- - -0.46
|
|
31
|
+
- 0.41
|
|
32
|
+
- 0.02
|
|
33
|
+
- - 0.46
|
|
34
|
+
- 0.422
|
|
35
|
+
- 0.64
|
|
36
|
+
- id: side
|
|
37
|
+
type: plane
|
|
38
|
+
normal:
|
|
39
|
+
- 1
|
|
40
|
+
- 0
|
|
41
|
+
- 0
|
|
42
|
+
bounds:
|
|
43
|
+
- - 0.494
|
|
44
|
+
- -0.38
|
|
45
|
+
- 0.02
|
|
46
|
+
- - 0.505
|
|
47
|
+
- 0.38
|
|
48
|
+
- 0.64
|
|
49
|
+
- id: upper-left-through-bore-rim
|
|
50
|
+
type: circle
|
|
51
|
+
center:
|
|
52
|
+
- 0.3333333333
|
|
53
|
+
- 0.4166666667
|
|
54
|
+
- 0.4833333333
|
|
55
|
+
axis:
|
|
56
|
+
- 0
|
|
57
|
+
- 1
|
|
58
|
+
- 0
|
|
59
|
+
radius: 0.125
|
|
60
|
+
- id: lower-left-triangular-pocket-rim
|
|
61
|
+
type: polygon
|
|
62
|
+
corners:
|
|
63
|
+
- - 0.2833333333
|
|
64
|
+
- 0.4166666667
|
|
65
|
+
- 0.3424500897
|
|
66
|
+
- - 0.45
|
|
67
|
+
- 0.4166666667
|
|
68
|
+
- 0.0537749551
|
|
69
|
+
- - 0.1166666667
|
|
70
|
+
- 0.4166666667
|
|
71
|
+
- 0.0537749551
|
|
72
|
+
- id: central-hexagonal-pocket-rim
|
|
73
|
+
type: polygon
|
|
74
|
+
corners:
|
|
75
|
+
- - -0.1783333333
|
|
76
|
+
- 0.4166666667
|
|
77
|
+
- 0.3333333333
|
|
78
|
+
- - -0.095
|
|
79
|
+
- 0.4166666667
|
|
80
|
+
- 0.4776709006
|
|
81
|
+
- - 0.0716666667
|
|
82
|
+
- 0.4166666667
|
|
83
|
+
- 0.4776709006
|
|
84
|
+
- - 0.155
|
|
85
|
+
- 0.4166666667
|
|
86
|
+
- 0.3333333333
|
|
87
|
+
- - 0.0716666667
|
|
88
|
+
- 0.4166666667
|
|
89
|
+
- 0.188995766
|
|
90
|
+
- - -0.095
|
|
91
|
+
- 0.4166666667
|
|
92
|
+
- 0.188995766
|
|
93
|
+
- id: upper-right-square-pocket-rim
|
|
94
|
+
type: polygon
|
|
95
|
+
corners:
|
|
96
|
+
- - -0.4416666667
|
|
97
|
+
- 0.4166666667
|
|
98
|
+
- 0.6083333333
|
|
99
|
+
- - -0.1916666667
|
|
100
|
+
- 0.4166666667
|
|
101
|
+
- 0.6083333333
|
|
102
|
+
- - -0.1916666667
|
|
103
|
+
- 0.4166666667
|
|
104
|
+
- 0.3583333333
|
|
105
|
+
- - -0.4416666667
|
|
106
|
+
- 0.4166666667
|
|
107
|
+
- 0.3583333333
|
|
108
|
+
- id: lower-right-tapered-pocket-rim
|
|
109
|
+
type: circle
|
|
110
|
+
center:
|
|
111
|
+
- -0.35
|
|
112
|
+
- 0.4166666667
|
|
113
|
+
- 0.2
|
|
114
|
+
axis:
|
|
115
|
+
- 0
|
|
116
|
+
- 1
|
|
117
|
+
- 0
|
|
118
|
+
radius: 0.125
|
|
119
|
+
- id: tapered-post-rim
|
|
120
|
+
type: circle
|
|
121
|
+
center:
|
|
122
|
+
- 0.3333333333
|
|
123
|
+
- -0.2166666667
|
|
124
|
+
- 0.9333333333
|
|
125
|
+
axis:
|
|
126
|
+
- 0
|
|
127
|
+
- 0
|
|
128
|
+
- 1
|
|
129
|
+
radius: 0.08333333333333333
|
|
130
|
+
- id: cylindrical-post-rim
|
|
131
|
+
type: circle
|
|
132
|
+
center:
|
|
133
|
+
- -0.2166666667
|
|
134
|
+
- -0.2166666667
|
|
135
|
+
- 1
|
|
136
|
+
axis:
|
|
137
|
+
- 0
|
|
138
|
+
- 0
|
|
139
|
+
- 1
|
|
140
|
+
radius: 0.125
|
|
141
|
+
- id: hexagonal-post-rim
|
|
142
|
+
type: polygon
|
|
143
|
+
corners:
|
|
144
|
+
- - -0.1226869322
|
|
145
|
+
- 0.0708333333
|
|
146
|
+
- 0.9
|
|
147
|
+
- - -0
|
|
148
|
+
- 0.1416666667
|
|
149
|
+
- 0.9
|
|
150
|
+
- - 0.1226869322
|
|
151
|
+
- 0.0708333333
|
|
152
|
+
- 0.9
|
|
153
|
+
- - 0.1226869322
|
|
154
|
+
- -0.0708333333
|
|
155
|
+
- 0.9
|
|
156
|
+
- - 0
|
|
157
|
+
- -0.1416666667
|
|
158
|
+
- 0.9
|
|
159
|
+
- - -0.1226869322
|
|
160
|
+
- -0.0708333333
|
|
161
|
+
- 0.9
|
|
162
|
+
- id: triangular-post-rim
|
|
163
|
+
type: polygon
|
|
164
|
+
corners:
|
|
165
|
+
- - 0.2833333333
|
|
166
|
+
- 0.065
|
|
167
|
+
- 0.9166666667
|
|
168
|
+
- - 0.1664199038
|
|
169
|
+
- 0.2675
|
|
170
|
+
- 0.9166666667
|
|
171
|
+
- - 0.4002467628
|
|
172
|
+
- 0.2675
|
|
173
|
+
- 0.9166666667
|
|
174
|
+
- id: cube-rim
|
|
175
|
+
type: polygon
|
|
176
|
+
corners:
|
|
177
|
+
- - -0.4416666667
|
|
178
|
+
- 0.3416666667
|
|
179
|
+
- 0.9166666667
|
|
180
|
+
- - -0.1916666667
|
|
181
|
+
- 0.3416666667
|
|
182
|
+
- 0.9166666667
|
|
183
|
+
- - -0.1916666667
|
|
184
|
+
- 0.0916666667
|
|
185
|
+
- 0.9166666667
|
|
186
|
+
- - -0.4416666667
|
|
187
|
+
- 0.0916666667
|
|
188
|
+
- 0.9166666667
|
|
189
|
+
- id: bore-wall
|
|
190
|
+
type: cylinder
|
|
191
|
+
center:
|
|
192
|
+
- 0.3333333333
|
|
193
|
+
- 0
|
|
194
|
+
- 0.4833333333
|
|
195
|
+
axis:
|
|
196
|
+
- 0
|
|
197
|
+
- 1
|
|
198
|
+
- 0
|
|
199
|
+
radius: 0.125
|
|
200
|
+
bounds:
|
|
201
|
+
- - 0.2
|
|
202
|
+
- -0.3833333333
|
|
203
|
+
- 0.35
|
|
204
|
+
- - 0.4666666667
|
|
205
|
+
- 0.3833333333
|
|
206
|
+
- 0.6166666667
|
|
207
|
+
- id: post-wall
|
|
208
|
+
type: cylinder
|
|
209
|
+
center:
|
|
210
|
+
- -0.2166666667
|
|
211
|
+
- -0.2166666667
|
|
212
|
+
- 0.8333333333
|
|
213
|
+
axis:
|
|
214
|
+
- 0
|
|
215
|
+
- 0
|
|
216
|
+
- 1
|
|
217
|
+
radius: 0.125
|
|
218
|
+
bounds:
|
|
219
|
+
- - -0.35
|
|
220
|
+
- -0.35
|
|
221
|
+
- 0.7
|
|
222
|
+
- - -0.0833333333
|
|
223
|
+
- -0.0833333333
|
|
224
|
+
- 0.9833333333
|
|
225
|
+
relations:
|
|
226
|
+
- type: perpendicular
|
|
227
|
+
features:
|
|
228
|
+
- front
|
|
229
|
+
- side
|
|
230
|
+
triangleBudget: "{{ .Values.triangleBudget }}"
|
|
231
|
+
bevelWidth: "{{ .Values.bevelWidth }}"
|
|
232
|
+
bevelSegments: 2
|
|
233
|
+
lodBevel:
|
|
234
|
+
preTriangleBudget: "{{ .Values.preTriangleBudget }}"
|
|
235
|
+
rims:
|
|
236
|
+
- id: through-bore
|
|
237
|
+
axis: y
|
|
238
|
+
center:
|
|
239
|
+
- 0.3333333333333333
|
|
240
|
+
- 0.4166666666666667
|
|
241
|
+
- 0.48333333333333334
|
|
242
|
+
radius: 0.125
|
|
243
|
+
radialTolerance: 0.009
|
|
244
|
+
axialTolerance: 0.007
|
|
245
|
+
- id: cylindrical-post
|
|
246
|
+
axis: z
|
|
247
|
+
center:
|
|
248
|
+
- -0.21666666666666667
|
|
249
|
+
- -0.21666666666666667
|
|
250
|
+
- 1
|
|
251
|
+
radius: 0.125
|
|
252
|
+
radialTolerance: 0.009
|
|
253
|
+
axialTolerance: 0.007
|
|
254
|
+
- id: export
|
|
255
|
+
type: write-glb
|
|
256
|
+
input: regularized
|
|
257
|
+
path: "{{ .Values.output }}"
|
|
258
|
+
lit: true
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../schema/pipeline-fragment.schema.json
|
|
2
|
+
nodes:
|
|
3
|
+
- { id: detail-glb, type: write-glb, input: detail, path: '{{ .Values.output }}/detail.glb', lit: true }
|
|
4
|
+
- { id: lod-glb, type: write-glb, input: lod, path: '{{ .Values.output }}/lod.glb', lit: true }
|
|
5
|
+
- id: row-glb
|
|
6
|
+
type: write-glb
|
|
7
|
+
input: lod
|
|
8
|
+
path: '{{ .Values.output }}/row.glb'
|
|
9
|
+
lit: true
|
|
10
|
+
instances: [[0, 0, 0], [1.5, 0, 0], [3, 0, 0]]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../schema/pipeline.schema.json
|
|
2
|
+
version: 1
|
|
3
|
+
includes: [exports.yaml]
|
|
4
|
+
values:
|
|
5
|
+
stack: ./inputs/stack
|
|
6
|
+
output: ./out
|
|
7
|
+
bevelWidth: 0.006
|
|
8
|
+
lodBudget: 100
|
|
9
|
+
nodes:
|
|
10
|
+
- { id: source, type: load-stack, path: '{{ .Values.stack }}' }
|
|
11
|
+
- id: detail
|
|
12
|
+
type: extract-mesh
|
|
13
|
+
input: source
|
|
14
|
+
method: hermite-dc
|
|
15
|
+
finish:
|
|
16
|
+
fitTolerance: 0.008
|
|
17
|
+
primitives: true
|
|
18
|
+
bevelWidth: '{{ .Values.bevelWidth }}'
|
|
19
|
+
bevelSegments: 2
|
|
20
|
+
dissolveAngle: 0.5
|
|
21
|
+
aoRadius: 0.15
|
|
22
|
+
- id: lod
|
|
23
|
+
type: extract-mesh
|
|
24
|
+
input: source
|
|
25
|
+
method: hermite-dc
|
|
26
|
+
finish:
|
|
27
|
+
fitTolerance: 0.008
|
|
28
|
+
primitives: true
|
|
29
|
+
bevelWidth: '{{ .Values.bevelWidth }}'
|
|
30
|
+
bevelSegments: 2
|
|
31
|
+
dissolveAngle: 0.5
|
|
32
|
+
triangleBudget: '{{ .Values.lodBudget }}'
|
|
33
|
+
aoRadius: 0.15
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"atlas":"stack.png","width":24,"depth":20,"layers":20,"columns":20,"spacing":0.05,"size":[1.2,1,1],"pivot":[0,0,0],"layerOrder":"bottom-to-top","layout":"row-major","axes":"xy-ground-z-up-y-forward"}
|
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../schema/pipeline.schema.json
|
|
2
|
+
version: 1
|
|
3
|
+
values:
|
|
4
|
+
stack: ../measured-depth/triple-dexel/inputs/stack
|
|
5
|
+
dexel: ../measured-depth/triple-dexel/dexel.guide.json
|
|
6
|
+
output: ./out/regularized.glb
|
|
7
|
+
nodes:
|
|
8
|
+
- { id: source, type: load-stack, path: '{{ .Values.stack }}' }
|
|
9
|
+
- id: fitted
|
|
10
|
+
type: extract-mesh
|
|
11
|
+
method: hermite-dc
|
|
12
|
+
input: source
|
|
13
|
+
guide: '{{ .Values.dexel }}'
|
|
14
|
+
finish:
|
|
15
|
+
regularization:
|
|
16
|
+
tolerance: 0.01
|
|
17
|
+
features:
|
|
18
|
+
- id: front
|
|
19
|
+
type: plane
|
|
20
|
+
normal: [0, 1, 0]
|
|
21
|
+
bounds: [[-0.46, 0.410, 0.02], [0.46, 0.422, 0.64]]
|
|
22
|
+
- id: side
|
|
23
|
+
type: plane
|
|
24
|
+
normal: [1, 0, 0]
|
|
25
|
+
bounds: [[0.494, -0.38, 0.02], [0.505, 0.38, 0.64]]
|
|
26
|
+
- id: bore
|
|
27
|
+
type: cylinder
|
|
28
|
+
center: [0.3333333, 0, 0.4833333]
|
|
29
|
+
axis: [0, 1, 0]
|
|
30
|
+
radius: 0.125
|
|
31
|
+
bounds: [[0.19, -0.38, 0.34], [0.475, 0.38, 0.63]]
|
|
32
|
+
- id: bore-rim
|
|
33
|
+
type: circle
|
|
34
|
+
center: [0.3333333, 0.4166667, 0.4833333]
|
|
35
|
+
axis: [0, 1, 0]
|
|
36
|
+
radius: 0.125
|
|
37
|
+
- id: square-rim
|
|
38
|
+
type: polygon
|
|
39
|
+
corners:
|
|
40
|
+
- [-0.4416667, 0.4166667, 0.3583333]
|
|
41
|
+
- [-0.1916667, 0.4166667, 0.3583333]
|
|
42
|
+
- [-0.1916667, 0.4166667, 0.6083333]
|
|
43
|
+
- [-0.4416667, 0.4166667, 0.6083333]
|
|
44
|
+
relations:
|
|
45
|
+
- { type: perpendicular, features: [front, side] }
|
|
46
|
+
- { id: export, type: write-glb, input: fitted, path: '{{ .Values.output }}', lit: true }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../../schema/pipeline.schema.json
|
|
2
|
+
version: 1
|
|
3
|
+
values:
|
|
4
|
+
stack: ./inputs/stack
|
|
5
|
+
guide: ./sdf.guide.json
|
|
6
|
+
output: ./out
|
|
7
|
+
nodes:
|
|
8
|
+
- { id: source, type: load-stack, path: '{{ .Values.stack }}' }
|
|
9
|
+
- { id: hermite, type: extract-mesh, input: source, method: hermite-dc, guide: '{{ .Values.guide }}' }
|
|
10
|
+
- { id: hermite-glb, type: write-glb, input: hermite, path: '{{ .Values.output }}/hermite.glb', lit: true }
|
|
11
|
+
- { id: carrera, type: extract-mesh, input: source, method: signed-distance-dc, guide: '{{ .Values.guide }}' }
|
|
12
|
+
- { id: carrera-glb, type: write-glb, input: carrera, path: '{{ .Values.output }}/carrera.glb', lit: true }
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version": 1, "atlas": "stack.png", "width": 32, "depth": 28, "layers": 30, "columns": 30, "spacing": 0.05, "size": [1.6, 1.4000000000000001, 1.5], "pivot": [0, 0, 0], "layerOrder": "bottom-to-top", "layout": "row-major", "axes": "xy-ground-z-up-y-forward"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"center": [0.799, 0.697, 0.753], "half": [0.441, 0.278, 0.312], "rotation": [[0.9205048534524404, -0.39073112848927377, 0.0], [0.39073112848927377, 0.9205048534524404, 0.0], [0.0, 0.0, 1.0]], "size": [1.6, 1.4000000000000001, 1.5]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../../schema/pipeline.schema.json
|
|
2
|
+
version: 1
|
|
3
|
+
values:
|
|
4
|
+
stack: ./inputs/stack
|
|
5
|
+
guide: ./dexel.guide.json
|
|
6
|
+
output: ./out
|
|
7
|
+
nodes:
|
|
8
|
+
- { id: source, type: load-stack, path: '{{ .Values.stack }}' }
|
|
9
|
+
- { id: occupancy, type: extract-mesh, input: source, method: mc33 }
|
|
10
|
+
- { id: occupancy-glb, type: write-glb, input: occupancy, path: '{{ .Values.output }}/occupancy.glb', lit: true }
|
|
11
|
+
- { id: measured, type: extract-mesh, input: source, method: hermite-dc, guide: '{{ .Values.guide }}' }
|
|
12
|
+
- { id: measured-glb, type: write-glb, input: measured, path: '{{ .Values.output }}/triple-dexel.glb', lit: true }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"units": "millimeters",
|
|
3
|
+
"sceneUnitsPerMillimeter": 0.016666666666666666,
|
|
4
|
+
"grid": [112, 92, 108],
|
|
5
|
+
"origin": [-33.1, -27.1, -2.1],
|
|
6
|
+
"extent": [66.2, 54.2, 64.3],
|
|
7
|
+
"base": { "width": 60, "depth": 50, "height": 40, "upperChamfer": 0.8 },
|
|
8
|
+
"bosses": [
|
|
9
|
+
{ "name": "tapered-post", "kind": "round", "axis": "z", "center": [-20, -13], "range": [40, 56], "radii": [7.2, 5] },
|
|
10
|
+
{ "name": "cylindrical-post", "kind": "round", "axis": "z", "center": [13, -13], "range": [40, 60], "radii": [7.5, 7.5] },
|
|
11
|
+
{ "name": "hexagonal-post", "kind": "polygon", "axis": "z", "center": [0, 0], "sides": 6, "radius": 8.5, "angle": 30, "range": [40, 54] },
|
|
12
|
+
{ "name": "triangular-post", "kind": "polygon", "axis": "z", "center": [-17, 12], "sides": 3, "radius": 8.1, "angle": -90, "range": [40, 55] },
|
|
13
|
+
{ "name": "cube", "kind": "polygon", "axis": "z", "center": [19, 13], "sides": 4, "radius": 10.606601717798213, "angle": 45, "range": [40, 55] }
|
|
14
|
+
],
|
|
15
|
+
"cuts": [
|
|
16
|
+
{ "name": "upper-left-through-bore", "kind": "round", "axis": "y", "center": [-20, 29], "range": [-27, 27], "radii": [7.5, 7.5], "through": true },
|
|
17
|
+
{ "name": "lower-left-triangular-pocket", "kind": "polygon", "axis": "y", "center": [-17, 9], "sides": 3, "radius": 11.547005383792515, "angle": 90, "range": [15, 27] },
|
|
18
|
+
{ "name": "central-hexagonal-pocket", "kind": "polygon", "axis": "y", "center": [0.7, 20], "sides": 6, "radius": 10, "angle": 0, "range": [11, 27] },
|
|
19
|
+
{ "name": "upper-right-square-pocket", "kind": "polygon", "axis": "y", "center": [19, 29], "sides": 4, "radius": 10.606601717798213, "angle": 45, "range": [10, 27] },
|
|
20
|
+
{ "name": "lower-right-tapered-pocket", "kind": "round", "axis": "y", "center": [21, 12], "range": [13, 27], "radii": [6.9, 7.6] }
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"atlas": "stack.png",
|
|
4
|
+
"width": 112,
|
|
5
|
+
"depth": 92,
|
|
6
|
+
"layers": 108,
|
|
7
|
+
"columns": 36,
|
|
8
|
+
"spacing": 0.009922839506172839,
|
|
9
|
+
"size": [
|
|
10
|
+
1.1033333333333333,
|
|
11
|
+
0.9033333333333333,
|
|
12
|
+
1.0716666666666665
|
|
13
|
+
],
|
|
14
|
+
"pivot": [
|
|
15
|
+
0.0,
|
|
16
|
+
0.0,
|
|
17
|
+
0.035
|
|
18
|
+
],
|
|
19
|
+
"layerOrder": "bottom-to-top",
|
|
20
|
+
"layout": "row-major",
|
|
21
|
+
"axes": "xy-ground-z-up-y-forward"
|
|
22
|
+
}
|
|
Binary file
|
|
Binary file
|