roofs
This module generates roof planes over any convex building footprint. It constructs the roof as the lower envelope of planes rising inward from each eave edge, effectively creating a straight-skeleton roof. It can handle various convex polygon shapes and identifies gable edges wh…
roofs
This module generates roof planes over any convex building footprint. It constructs the roof as the lower envelope of planes rising inward from each eave edge, effectively creating a straight-skeleton roof. It can handle various convex polygon shapes and identifies gable edges where no plane rises, instead defining a vertical wall. The module takes a polygon footprint, a boolean array indicating eave edges, and options for altitude, slope, overhang, and mansard profiles. It returns a roof object containing the generated faces, interior lines (ridges, hips, breaks), gable profiles, and a function to query the roof's height at any point over the footprint. It is called by building generation stages to create detailed roof geometry.
Scoped to this part · feeds back into the world's score.