From 02e0c9801de82768197344ca0cc8d60cfa1af762 Mon Sep 17 00:00:00 2001 From: Sergey Matyunin Date: Thu, 13 Aug 2026 21:48:28 +0300 Subject: [PATCH] Fix corner split smoke geometry input Issue: #123 User-Visible: no --- demo/smoke_split_corner_wall.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/demo/smoke_split_corner_wall.mjs b/demo/smoke_split_corner_wall.mjs index d5e0a9ff..80e56409 100644 --- a/demo/smoke_split_corner_wall.mjs +++ b/demo/smoke_split_corner_wall.mjs @@ -84,7 +84,12 @@ const res = await page.evaluate(async () => { const persisted = JSON.stringify({ rooms: space.rooms, walls: space.walls }); const planD = sr().querySelector('.wallbody')?.getAttribute('d') || ''; - const lightGeom = c._lightBarriers(c._spaceModel()).masonryGeometry; + const lightSpace = c._spaceModel(); + const lightPolys = lightSpace.rooms + .filter((room) => Array.isArray(room.poly)) + .map((room) => ({ r: room, poly: room.poly })); + const lightPhysical = c._physicalBodiesR(lightSpace); + const lightGeom = c._lightBarriers(lightSpace, lightPolys, lightPhysical).masonryGeometry; const lightPoints = lightGeom.flat(2); const lightBox = lightPoints.length ? [ Math.min(...lightPoints.map((point) => point[0])),