feat: implement automatic wall-splitting and slab generation from closed wall loops

This commit is contained in:
sudhir
2026-04-15 14:18:09 +05:30
parent 3ac26bf635
commit 6190ba4bdc
3 changed files with 805 additions and 571 deletions
File diff suppressed because it is too large Load Diff
+2
View File
@@ -10,11 +10,13 @@ export const SlabNode = BaseNode.extend({
polygon: z.array(z.tuple([z.number(), z.number()])),
holes: z.array(z.array(z.tuple([z.number(), z.number()]))).default([]),
elevation: z.number().default(0.05), // Elevation in meters
autoFromWalls: z.boolean().default(false),
}).describe(
dedent`
Slab node - used to represent a slab/floor in the building
- polygon: array of [x, z] points defining the slab boundary
- elevation: elevation in meters
- autoFromWalls: whether the slab is automatically generated from a closed wall loop
`,
)