schema.ts

src/scene/schema.ts
import { 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

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC