import type { Pt, RealShell } from "./crowd.ts"; import { type Plane, type V3 } from "./turn.kit.ts"; /** The saddle's measure, in the drawing's frame: its middle, the radius of its round plan, the unit direction of the line through its two high points (and the one across it), and the heights of the high points and of the low rim (feet over the surface). */ export type Saddle = NonNullable; /** The cells to a side of the roof's grid (the plan is 4 times that round the rim), and the rings of the wall, at each detail. */ export declare const SADDLE_CELLS: { readonly low: 8; readonly auto: 10; readonly high: 16; }; /** How thick the beam round the roof's edge is, how far it overhangs the wall's top, how far the wall leans out over its height (a share of the height of the edge there), in feet or as a share (ours: measured on photographs, a hand's accuracy). */ export declare const EAVE: { readonly depth: 5; readonly overhang: 7; readonly lean: 0.14; }; /** A pier stands on the wall at every this many facets, and the band of small windows lies between these shares of the wall's height (ours). */ export declare const PIER_EVERY = 2; export declare const WINDOWS: { readonly from: 0.4; readonly to: 0.44; }; /** The height of the roof over a point of the plan, above the surface, in feet: a hyperbolic paraboloid over the round plan, high along `axis` and low across it. */ export declare function saddleHeight(s: Saddle, [x, y]: Pt): number; /** * A quad of four corners (in order round it) as one plane: its first corner, its side to the second and its side to the fourth span the plane; the third corner is put where the plane has it (a quad of a doubly curved surface is not quite * flat, and the plane is the nearest flat piece: within a foot or two at every cut). `paint` gets the corners in the plane's own feet, and the plane's own (unit) normal as it lies in the drawing. */ export declare function quadPlane(id: string, kind: Plane["kind"], corners: readonly [V3, V3, V3, V3], paint: (local: [Pt, Pt, Pt, Pt]) => string): Plane | undefined; /** The roof: the net of quads over the round plan, `cells` to a side, with the beam round its edge. Every plane is a roof's, cut away from above and, by its side, from the eye's; the beam is the edge of the roof's own item. */ export declare function saddleRoof(s: Saddle, lift: number, cells: number): Plane[]; /** The wall: a facet between each two points of the rim, leaning out from its foot to the beam, with a pier between every `PIER_EVERY` panels, the fine lines of its cladding and a few windows. Each gives way by the eye's side as a wall does. */ export declare function saddleWalls(s: Saddle, lift: number, cells: number, centre: Pt): Plane[]; /** The two stair towers at each end of the roof's high line, a round one and a square one, on the wall's foot at either side of the end: how tall each stands (a share of the wall there) and how big it is, in feet (ours: photographs show each, not its size). */ export declare const TOWERS: { readonly round: { readonly turn: -24; readonly radius: 11; readonly share: 0.55; }; readonly square: { readonly turn: 24; readonly half: 17; readonly share: 0.45; }; }; /** The stair towers: at each of the roof's two high points, a round tower and a square one against the wall, taller where the wall is. */ export declare function saddleTowers(s: Saddle, lift: number): Plane[];