Repository navigation
Commit 3ec3453
feat(z-drive-housing): graph twin of the script (graph format 1.1) (#173)
z-drive.graph.json is a golden twin of main.py, declared as graph_file on
the z_drive mode beside the script (owner decision D5: graph twins coexist
with scripts, parity-checked; main.py stays the rendered source and the
oracle). Digital Twins phase 8b, lane P8-TWINS-B.
Same parameters (declared in `parameters`, `mirrored` included), same
derivations (the five clamps as ternary pairs in `derived`, the min/max of
X0, X1 and the corner key's end as ternaries, the stations A_IN..C_OUT and
the constants under main.py's names and values) and the same operations in
the same order: every loop (walls, mount screws, bearing seats, motor screw
slots) unrolled, each _slot_y the two end cylinders and the web box.
`mirrored` selects the pure YZ `reflect` of the body, as body.mirror("YZ")
does.
Each _cyl_y is an XZ profile_circle built at the origin, extruded along +Y,
turned -90 degrees about y so the cylinder's seam sits at +Z where
makeCylinder puts it, then translated into place.
y4d-spec check --render --require-openscad --parity ./z-drive-housing:
10 renders, parity 5/5 at 0.000000 mm (defaults + corner_right,
corner_left, loop_tensioned, deep_plane_wide_offset; the two mirrored
presets included), frames 50/50 ok, failures 0. Frames and presets
unchanged. Assembly A validates (235/235 placed, 292/292 mates, poses
23/23); its digest moves cb80b679... -> d6673f24... because the cartridge
gains a file.
Signed-off-by: Aldo Ruiz Luna <aldo.ruiz.luna@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 5d9cd22 commit 3ec3453
3 files changed
Lines changed: 250 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments