fix(coffee_machine): put the portafilter handle on the brew-seal axis

The neck, grip and cap used to be three diagonal rods that drifted off the
portafilter centreline. They now share one -Y axis at
BREW_SEAL_Z - 18.5 mm, with lengths derived from the previous segment
lengths so the silhouette is unchanged but the handle no longer tilts.

Widen the left/right acceptance cameras from 0.86 to 1.02 so the whole
machine, handle included, stays in frame.

Refresh the derived records: the cup-fit validation now points at the new
machine and cup SHAs, and the grinder low-poly validation gains the
bean-consumption preview entry (20/10/4 visible instances at 1.00/0.67/0.33
remaining), explicitly flagged as preview-only morph weights.
This commit is contained in:
Yanchen
2026-11-22 11:02:44 +08:00
parent 94bdea5506
commit 086d326801
3 changed files with 29 additions and 7 deletions
@@ -65,6 +65,16 @@
"same_camera_and_lighting": true, "same_camera_and_lighting": true,
"baseline_commit": "a55f327", "baseline_commit": "a55f327",
"image": "preview_low_poly_comparison.png" "image": "preview_low_poly_comparison.png"
},
"consumption": {
"engine": "CYCLES",
"samples": 64,
"same_camera_and_lighting": true,
"remaining_fractions": [1.0, 0.6666666667, 0.3333333333],
"visible_instances": [20, 10, 4],
"surface_z_m": [0.312, 0.2897533, 0.2625707],
"image": "preview_bean_consumption.png",
"method": "Direct morph weights for preview only; no gameplay consumption logic added"
} }
} }
} }
@@ -355,9 +355,21 @@ for suffix, angle in [('A', -45), ('B', 135)]:
lathe_profile('CM_Portafilter_SpoutCollar', (0, BREW_Y, 0), [(0.0105, 0.1745), (0.0105, 0.1815), (0.0065, 0.1815), (0.0065, 0.1745)], steel_light, 32, 0.0005, portafilter) lathe_profile('CM_Portafilter_SpoutCollar', (0, BREW_Y, 0), [(0.0105, 0.1745), (0.0105, 0.1815), (0.0065, 0.1815), (0.0065, 0.1745)], steel_light, 32, 0.0005, portafilter)
tube_between('CM_Portafilter_SpoutLeft', (0, BREW_Y, 0.176), (-0.014, BREW_Y, 0.157), 0.005, 0.0032, steel_light, portafilter) tube_between('CM_Portafilter_SpoutLeft', (0, BREW_Y, 0.176), (-0.014, BREW_Y, 0.157), 0.005, 0.0032, steel_light, portafilter)
tube_between('CM_Portafilter_SpoutRight', (0, BREW_Y, 0.176), (0.014, BREW_Y, 0.157), 0.005, 0.0032, steel_light, portafilter) tube_between('CM_Portafilter_SpoutRight', (0, BREW_Y, 0.176), (0.014, BREW_Y, 0.157), 0.005, 0.0032, steel_light, portafilter)
rod('CM_Portafilter_Neck', (-0.024, -0.261, 0.195), (-0.064, -0.300, 0.181), 0.008, steel_light, 20, portafilter) portafilter['grip_axis'] = '-Y; shared centerline with neck, grip and cap'
rod('CM_Portafilter_Grip', (-0.061, -0.297, 0.182), (-0.142, -0.400, 0.139), 0.014, rubber, 24, portafilter) portafilter['grip_centerline_z_m'] = BREW_SEAL_Z - 0.0185
rod('CM_Portafilter_GripCap', (-0.139, -0.397, 0.140), (-0.151, -0.410, 0.135), 0.0145, steel_dark, 24, portafilter) handle_direction = Vector((0, -1, 0))
handle_start = Vector((0, BREW_Y - 0.034, BREW_SEAL_Z - BREW_LIFT - 0.0185))
handle_segments = [
('Neck', math.sqrt(0.003317), 0.008, steel_light, 20),
('Grip', math.sqrt(0.019019), 0.014, rubber, 24),
('GripCap', math.sqrt(0.000338), 0.0145, steel_dark, 24),
]
for name, length, radius, mat, vertices in handle_segments:
if name != 'Neck':
handle_start -= handle_direction * 0.003
handle_end = handle_start + handle_direction * length
rod('CM_Portafilter_' + name, handle_start, handle_end, radius, mat, vertices, portafilter)
handle_start = handle_end
# Shallow drip tray: all grille holes are represented by a packed texture. # Shallow drip tray: all grille holes are represented by a packed texture.
drip = empty('CM_DripTray', parent=root) drip = empty('CM_DripTray', parent=root)
@@ -865,8 +877,8 @@ def camera(name, loc, target, scale):
front_camera = camera('Acceptance_Front_0deg', (0, -1.8, 0.25), (0, -0.02, 0.25), 0.68) front_camera = camera('Acceptance_Front_0deg', (0, -1.8, 0.25), (0, -0.02, 0.25), 0.68)
angle_camera = camera('Acceptance_30deg', (0.8, -1.3856, 1.1738), (0, -0.02, 0.25), 0.78) angle_camera = camera('Acceptance_30deg', (0.8, -1.3856, 1.1738), (0, -0.02, 0.25), 0.78)
right_camera = camera('Acceptance_Right_YOZ', (1.8, 0, 0.25), (0, 0, 0.25), 0.86) right_camera = camera('Acceptance_Right_YOZ', (1.8, 0, 0.25), (0, 0, 0.25), 1.02)
left_camera = camera('Acceptance_Left_YOZ', (-1.8, 0, 0.25), (0, 0, 0.25), 0.86) left_camera = camera('Acceptance_Left_YOZ', (-1.8, 0, 0.25), (0, 0, 0.25), 1.02)
controls_camera = camera('Acceptance_Controls_Front_XOZ', (0, -1.8, 0.337), (0, -0.095, 0.337), 0.64) controls_camera = camera('Acceptance_Controls_Front_XOZ', (0, -1.8, 0.337), (0, -0.095, 0.337), 0.64)
brew_camera = camera('Acceptance_Brew_Interface', (0.32, BREW_Y - 0.398, 0.060 + BREW_LIFT), (0, BREW_Y, 0.174 + BREW_LIFT), 0.25) brew_camera = camera('Acceptance_Brew_Interface', (0.32, BREW_Y - 0.398, 0.060 + BREW_LIFT), (0, BREW_Y, 0.174 + BREW_LIFT), 0.25)
bowl_camera = camera('Acceptance_Portafilter_Bowl', (0.25, BREW_Y - 0.308, 0.49 + BREW_LIFT), (0, BREW_Y - 0.028, 0.17 + BREW_LIFT), 0.25) bowl_camera = camera('Acceptance_Portafilter_Bowl', (0.25, BREW_Y - 0.308, 0.49 + BREW_LIFT), (0, BREW_Y - 0.028, 0.17 + BREW_LIFT), 0.25)
@@ -1,8 +1,8 @@
{ {
"source_machine_unchanged": true, "source_machine_unchanged": true,
"source_machine_sha256": "c41f0d3636654138a13400002ddf4e32cacddb4b1af939cf5b20ad4313f8bf89", "source_machine_sha256": "634f7f6f38f0c809910aad1e83514145a0f574d38a6f9f5e239520c8cb17b442",
"source_cup_unchanged": true, "source_cup_unchanged": true,
"source_cup_sha256": "5ac4bfae6528989485136c87548d36e0214bd56b5bcd29dedf4a3dc548cdbada", "source_cup_sha256": "c0557c2f335e2bf178ff3190f8071e4b74e0b8503937e4d499e349fc304607f5",
"lid_included": false, "lid_included": false,
"layout": { "layout": {
"scheme": "A", "scheme": "A",