/** * STATIC STEERING-RIM GEOMETRY for `helix vehicle validate` / `vehicle publish`: every triangle of the wheel's rim must live under the * `steering` node, because only that node turns. * * WHY THIS EXISTS (measured, Ferrari F355 Spider 1.0.16-1.0.20). The creator's prep put the wheel's hub, spokes and two side grips under * `steering` and left the rim's TOP and BOTTOM ARCS (180 triangles, one source geometry) in the static body shell. At full lock the hub and * the side grips turned, the two arcs stood still, and the hand that slid down to 6 o'clock held air: the hosted critic failed * `vehicle.occupant.driver_steering` five versions running. Every local number passed, because the local hand gates measure the geometry * UNDER the steering node only, which was the part that turned. A rim that does not turn is invisible to them by construction, so the * check has to look at what is NOT under the node: any static triangle lying on the wheel's own rim ring is a part of the rim that * will not turn. * * HOW. The wheel's plane and ring are fitted off the steering node's own vertices (smallest covariance axis, then the outer ring about its * own centre), in world space of the model as authored. A triangle outside the steering subtree whose three vertices all lie within a * thin band either side of that plane and between 0.78 and 1.22 of the ring radius from the ring centre is ON the rim. The rim's angular * coverage by such triangles decides: 90 degrees or more is an ERROR (a quarter of the rim or more stays put), anything less than that but * present is a WARNING (a stalk, a sliver, a stitch strip). * * Pure of the network and the runtime: it reads the GLB (meshopt decoded) and nothing else. */ import { type Document } from '@gltf-transform/core'; import type { VehicleIssue } from './validate'; type V3 = [number, number, number]; /** * Static rim coverage that fails the car, degrees. Measured across the published fleet (13 cars, 2026-10-29): the F355 1.0.20 covered * 155 degrees; the LaFerrari's column-mounted shift paddles cover 50 (legitimately static, so a warning); every other car 0. */ export declare const STATIC_RIM_FAIL_DEG = 90; export interface SteeringRimReport { /** The steering node(s) found; empty when the model has none (nothing to judge). */ nodes: string[]; /** The fitted ring, or null when the steering node holds too little geometry to fit. */ ring: { centre: V3; normal: V3; radiusM: number; points: number; } | null; /** Static triangles lying on the rim ring, and which static node each one belongs to. */ staticTriangles: number; staticNodes: Record; /** Angular coverage of those triangles about the ring, degrees (5 degree bins). */ staticCoverageDeg: number; } export declare function analyzeSteeringRim(doc: Document): SteeringRimReport; /** Read the GLB (meshopt decoded) and judge it. A model this module cannot read is the manifest check's business, not this one's. */ export declare function steeringRimReport(glb: Buffer): Promise; export declare function steeringRimIssues(report: SteeringRimReport | null): VehicleIssue[]; export {};