Add auto ceilings and simplify ceiling selection affordances

This commit is contained in:
sudhir
2026-04-16 17:56:54 +05:30
parent cb2ceba566
commit 4edf45f7c9
5 changed files with 302 additions and 63 deletions
@@ -13,11 +13,13 @@ export const CeilingNode = BaseNode.extend({
polygon: z.array(z.tuple([z.number(), z.number()])),
holes: z.array(z.array(z.tuple([z.number(), z.number()]))).default([]),
height: z.number().default(2.5), // Height in meters
autoFromWalls: z.boolean().default(false),
}).describe(
dedent`
Ceiling node - used to represent a ceiling in the building
- polygon: array of [x, z] points defining the ceiling boundary
- holes: array of polygons representing holes in the ceiling
- autoFromWalls: whether the ceiling is automatically generated from a closed wall loop
`,
)