src/scene/schema.tsimport { z } from 'zod';export const Vec2 = z.object({x: z.number(),y: z.number(),});export type Vec2 = z.infer<typeof Vec2>;export const Vec3 = z.object({x: z.number(),y: z.number(),z: z.number(),});export type Vec3 = z.infer<typeof Vec3>;// Walls are zero-thickness planes (centerline geometry) — no thickness field.export const Wall = z.object({id: z.string(),start: Vec2,end: Vec2,
Showing the first 20 lines.
Get full code