From 750e3231f77ea26f47f76e4195e8e72031e2d305 Mon Sep 17 00:00:00 2001 From: Aldo Ruiz Luna Date: Fri, 2 Oct 2026 15:26:00 -0600 Subject: [PATCH] fix(book-fold-phone): centre the default lens row as the manifest declares Both twins placed the first lens at x = 47.736 while the manifest (bound to lenswindow_lens_place.x) declares 47.808. 47.808 is the centred row, island_center_x - lens_pitch_x = 56.88 - 9.072, the same rule every device preset follows; 47.736 left the default row 0.072 mm off-centre. main.py's PARAM fallback and the graph node literal now state the manifest default (GOC-1 default-drift). Co-Authored-By: Claude Opus 5.5 Signed-off-by: Aldo Ruiz Luna --- book-fold-phone/bookfold.graph.json | 2 +- book-fold-phone/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/book-fold-phone/bookfold.graph.json b/book-fold-phone/bookfold.graph.json index 8a738205..adb209b5 100644 --- a/book-fold-phone/bookfold.graph.json +++ b/book-fold-phone/bookfold.graph.json @@ -54,7 +54,7 @@ { "id": "lenswindow_island_box", "type": "box", "params": { "w": 30.24, "d": 30.24, "h": 0.6 } }, { "id": "lenswindow_island_place", "type": "translate", "inputs": { "shape": "lenswindow_island_box" }, "params": { "x": 56.88, "y": 21.12, "z": 4.7 } }, { "id": "lenswindow_lens_cyl", "type": "cylinder", "params": { "r": 3.9312, "h": 1.8 } }, - { "id": "lenswindow_lens_place", "type": "translate", "inputs": { "shape": "lenswindow_lens_cyl" }, "params": { "x": 47.736, "y": 21.12, "z": 4.1 } }, + { "id": "lenswindow_lens_place", "type": "translate", "inputs": { "shape": "lenswindow_lens_cyl" }, "params": { "x": 47.808, "y": 21.12, "z": 4.1 } }, { "id": "lenswindow_row", "type": "pattern_linear", "inputs": { "shape": "lenswindow_lens_place" }, "params": { "count": 3, "dx": 9.072, "dy": 0, "dz": 0 } }, { "id": "lenswindow_tool", "type": "union", "inputs": { "a": "lenswindow_island_place", "b": "lenswindow_row" } }, { "id": "asm_camera_flat", "type": "cut", "inputs": { "a": "asm_camera_inner", "b": "lenswindow_tool" } }, diff --git a/book-fold-phone/main.py b/book-fold-phone/main.py index 10c3cbbc..70a5c496 100644 --- a/book-fold-phone/main.py +++ b/book-fold-phone/main.py @@ -179,7 +179,7 @@ def PARAM(getter, default): lens_count = int(PARAM(lambda: lens_count, 3)) lens_radius = float(PARAM(lambda: lens_radius, 3.9312)) lens_depth = float(PARAM(lambda: lens_depth, 1.8)) -lens_first_center_x = float(PARAM(lambda: lens_first_center_x, 47.736)) +lens_first_center_x = float(PARAM(lambda: lens_first_center_x, 47.808)) lens_pitch_x = float(PARAM(lambda: lens_pitch_x, 9.072)) lens_center_y = float(PARAM(lambda: lens_center_y, 21.12)) lens_cut_center_z = float(PARAM(lambda: lens_cut_center_z, 4.1))