Wall Mitering and T-Junction Trimming in TypeScript Without CSG Boolean Libraries
A developer describes how drawing architectural floor plans by stroking thick wall centerlines causes visible defects such as notched corners, mismatched thickness joints, and flickering overlaps in 3D. The PlanCaliber tool instead compiles each wall into exact mitered 2D quads and analytic 3D solid pieces using a single deterministic joint solver written in pure TypeScript. The approach computes intersections of offset wall boundary lines to join walls of differing thicknesses cleanly, and limits miter length to avoid spikes at sharp acute angles by falling back to a bevel. For junctions with three or more walls, the method uses butt-trimming so that walls do not overlap.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in