Skip to content

Floor-plate massing

The massing stage turns the carved envelope into stacked floor plates: a ground floor, then floors of equal height, each a closed prism whose outline follows the maximum volume's footprint and steps back where the envelope does not allow the floor. Use it for massing models, floor-area figures and as simulation input (one closed prism per floor and plate).

How plates are formed

  1. Footprint and facades. The footprint is the maximum volume's plan projection (the area it covers seen from above), so an uneven or raised base does not change it. Preprocessing saves this footprint (footprint.json in its folder, world coordinates) from the mesh it voxelized; massing reads that file, not the mesh in the config passed to massing and not the mesh file on disk, so later edits to either change nothing. If preprocessing could not compute a footprint, massing uses the outline of the occupied voxel columns and warns. The footprint outline is split into facades wherever it turns by more than 30 degrees. Curved or faceted outlines with smaller turns stay one facade. A facade whose vertices all lie within 1 cm of the line from its first to its last vertex is straight: footprints cut from meshes carry vertices micrometres off a straight wall. Far from the origin, where a mesh stored in float32 rounds its coordinates by more, the tolerance is four of those float32 steps, and it is never more than half a voxel. A real bend, a few degrees over a few metres, stays a bend.
  2. Faces. Every footprint column belongs to its nearest facade. Facades shorter than two modules (2 * min_plate_dimension: chamfers, small steps) get no face of their own; their neighbours meet at one corner across them. At corners the longer facade takes the corner square (up to half the building's depth behind it), so every face ends in a line perpendicular to its facade. At equal lengths (a square) the facade closer to the x axis takes the corner. Along a facade not aligned with the voxel grid, the voxelizer also fills columns whose centre lies just outside the footprint; such a column belongs to the face of the footprint point nearest to it, so the end of a slab is cut on the same lines as the rest of it.
  3. Bays. Each face is cut into square modules of min_plate_dimension (3 m): along its facade, perpendicular to it, and in depth behind it, parallel to it. Along a straight facade the rows of modules are laid from both ends of the building (its extent along the facade) towards the middle; what is left over widens the middle row, or the two middle rows equally (a 10 m bar: 3, 4 and 3 m; 13 m: 3, 3.5, 3.5 and 3 m). An end wing therefore starts with a whole row whatever the building's length, and the cuts on the two sides of a straight building line up. Along a curved facade the rows are cut every module of length from its start. A row narrower than a module at the end of a face that ends inside the building (at a corner square) joins its neighbour, and a module at the back of a row (where the face meets the one opposite) shallower than min_plate_dimension joins the one in front of it. Each module is built on its own, so a wing keeps its floors whatever the envelope does behind it in the same face, for example a courtyard of a perimeter block carved lower. Behind any facade a plate can therefore be as shallow as one module, min_plate_dimension.
  4. Floors. For each floor (ground floor ground_floor_height, then floor_height), a module is built when it stays inside the maximum volume over the floor's full height, at most plate_tolerance of its volume lies outside the carved envelope, and (with plate_stacking: supported) it is built on the floor below. A column along a facade not aligned with the voxel grid counts only for its share inside the footprint, so whether a module is built does not depend on the angle of the footprint to the grid; a column less than half inside the footprint need not be filled by the maximum volume at all (along a wall the voxels can reach up to a voxel past the footprint, as the re-voxelized envelope of an earlier carving does). A module over the tolerance is not built even when built modules enclose it, so a local dip in the envelope can leave a hole of one or two modules in a floor; holes are not filled. Parts narrower than min_plate_dimension are dropped (the test is the same at any angle of the footprint to the voxel grid), so a strip one module deep, min_plate_dimension, is kept. The ground floor starts at the maximum volume's lowest point, and the top floor ends at or below its highest point; preprocessing records both in its manifest. The voxel grid is not aligned with these points, so the lowest occupied voxel layer can lie mostly below the base (its centre below it) and the highest mostly above the roof. Such a layer is filled only where rays hit the base or the roof, which they miss in columns along facades that are not aligned with the grid, so it does not count: a floor's height and its share outside the envelope are measured over the layers whose centre lies between the lowest and the highest point.
  5. Plates. The connected built modules of a floor form a plate. A module on a straight facade is drawn as a rectangle in its facade's frame: cuts lie on the cut lines (along the facade and in depth), the back of the last module lies on the midline where the facade faces a parallel one, and the facade edges are the footprint's own. Other edges (face ends at corners) are within half a voxel of the voxel columns. Where a corner is not square, the faces of its two facades meet along the bisector of the corner; a module there is its rectangle cut by that line (or by a line of the two facades' corner squares, or by a bisector with a facade that meets one of them; where the faces meet along a curve, by the line midway between the two faces' columns turned to a direction of the two facades or their bisector), so it ends on one straight slanted edge. A cut that would leave an angle under 30 degrees or a piece narrower than a voxel is not used. Modules on curved facades, and the modules no such line separates from a neighbouring face, follow their voxel columns, straight to within half a voxel; they stay off the columns of modules not in the plate. Where the shapes of two modules overlap, the overlap belongs to one of them, so plates of different modules never overlap. Spikes and cracks of no width that the boolean operations leave are removed.

Settings

Setting Default Meaning
ground_floor_height 5.0 Height of the ground floor (m)
floor_height 3.0 Height of every floor above it (m)
min_plate_dimension 3.0 Side of the square module and minimum plate width (m); "Grid module" in the browser UI
plate_tolerance 0.2 Largest share of a module's volume on a floor outside the carved envelope; "Module share allowed outside the envelope" in the browser UI
plate_stacking supported supported: build a module only on a built module; free: each floor on its own
floor_area_ratio empty Floor area / plot area the massing is trimmed to; empty: no limit
site_coverage empty Largest share (0 to 1) of the plot the footprint may cover; empty: no limit
height_limit empty No floor's top above this height over the maximum volume's lowest point (m)
plot_area empty The plot's area (m²) the floor area ratio and the coverage are read against; empty: the maximum volume's footprint
rules_per_site false With drawn sites, each site is trimmed to its own rules on its own area; false: the sites are one plot
site_rules empty Each site's floor_area_ratio, site_coverage and height_limit by site name, while rules_per_site is on; a site without an entry takes the shared ones. receives (default true) says whether the site takes a transfer
transfer_shortfall false With rules_per_site, what the sites short of FAR miss is moved onto the extra of the sites that receive (see Transfer between sites)
development_sites written The drawn sites' outlines in plan, which the browser interface writes for rules_per_site
allocation 0.5 From 0 (vertical: a small footprint of tall stacks) to 1 (spread: the widest footprint allowed)
keep_side frontage Among equal stacks, frontage removes those deepest behind their facade first, interior those nearest it

Plates never leave the maximum volume. The three sizes must be at least the voxel size of the preprocessing run; the stage reports an error naming the setting otherwise.

Trimming to FAR and coverage

With a floor area ratio or a site coverage, the full fill described above is trimmed to them (the Develop workspace of the browser interface). A stack is a bay over its floors. Floor areas here count built modules by their bay area; the plates keep their drawn areas.

  1. Height limit. Floors whose top lies above the limit are not built.
  2. Target footprint. At allocation 0 (vertical) it is the footprint of the tallest stacks, taken tallest first, until their floor area reaches the target (floor area ratio × plot area); at 1 (spread) the coverage cap (site coverage × plot area), or the full fill's footprint without one; in between, linearly. It is never above the coverage cap.
  3. Footprint. While the footprint exceeds the target footprint, whole stacks are removed, the lowest first.
  4. Floor area. While the floor area exceeds the target, the top built module of the tallest stack is removed, ending at or under the target.
  5. Ties go by keep_side, then by bay order. Parts narrower than the module are dropped and the plates formed again, as for the full fill.
  6. Drawn floor area. The floor area that counts is that of the plates as drawn, which the narrow-part pass makes differ from the bay count. Modules are removed (the top of the tallest stack) while the drawn area exceeds the target, then the modules removed are put back in the reverse order, in batches, while it stays at or under the target. A module that would start a new stack is put back only while the footprint stays within the coverage cap. The result lands within about one module's floor area under the target.

Rules per site

With drawn sites the rules apply to all sites together by default: the targets are read against their added areas and the trimming takes stacks from any of them, so a site whose envelope is low can lose every module. With rules_per_site, each module group (bay) belongs to the site its columns' centre lies in (the nearest site when in none), and each site is trimmed, grown for its room and grown for its cut on its own, with its own floor area ratio, coverage and height limit (site_rules, or the shared ones for a site without an entry) read against its own area (its outline minus its holes). The floors stand on every level; a site's height limit leaves its own upper floors empty. development.sites gives each site's figures (name, plot area, targets, capacity, footprint, storeys, height, floor area reached, room, cut, binding limit); the block's own figures add them up, with a target or a cap only when every site has one. The height or spread and the keep side are shared.

Transfer between sites

With transfer_shortfall (and rules_per_site), the floor area the sites short of FAR miss is moved onto the room of the sites that receive (receives in site_rules, true by default), the site with the most room first. A site counts as short when it misses more than one module's floor area; a short site does not receive. Each receiver grows from its form with the envelope's modules, in the same order as its room, until it holds what it is given or its room runs out; there is no cap besides its envelope, its coverage and its height limit. The modules received are written to received.obj and taken out of the room; the form itself (plates.json, plates.obj) is unchanged. development.transfer gives what the short sites miss (short_m2), what was received (received_m2) and what is still short (still_short_m2); each site in development.sites gets received_m2.

Room left and floors cut by the envelope

Two questions follow the trimmed form, both under the same coverage cap and height limit:

  • Room left (room_floor_area_m2, room.obj): what more the form could take in the envelope if FAR allowed it. The form grows with the envelope's modules: the module on top of its lowest stack first (a stack grows straight up), then new stacks while the footprint stays within the coverage cap, the tallest column first. Without a coverage cap the room is the rest of the envelope.
  • Cut by the envelope (envelope_cut, outside.obj): when the form is short of the target by more than half a module, the floors it would need beyond the envelope to reach it. The form grows the same way with the modules of the maximum volume (the site without the carving) until it reaches the target; the modules outside the envelope are the cut. Its floor area is therefore the shortfall, and nothing when FAR is met. still_short_m2 is what does not fit even then (the maximum volume, the coverage cap or the height limit stops the growth). Without a shortfall envelope_cut is null and no outside.obj is written.

plates.json gets a development block: the plot area, the maximum volume's footprint, the targets, the full fill's floor area, footprint and storeys (its capacity, after the height limit), the trimmed footprint, storeys and height, the module, and the limit that binds (binding): envelope when the full fill holds less than the target (height_limit when it would hold it without the height limit), coverage when the coverage cap keeps the floor area under the target, far when the target trims the form, null when nothing is set. room_floor_area_m2 and envelope_cut are described above. Also:

  • within_rules: what the envelope holds within the rules, the form and its room together (floor area, footprint, storeys, height). The full fill's capacity leaves coverage out; this does not.
  • by_allocation: with a floor area ratio or a site coverage, the same rules built with each of the five steps of height or spread (0, 0.25, 0.5, 0.75, 1): each step's floor area, footprint, storeys, height, shortfall (short_m2, null without FAR; with rules per site, the sites short by more than a module), cut and empty_sites. The step built is one of them; the others are trimmed without their room. compared_key records what the rows depend on (the thresholding run and every massing setting but allocation and final_mesh_format): a run in the same folder with the same key builds only its own step and takes the other four rows from the run before, so changing only the step takes about 1.7 s instead of 4.2 s on Allatini (2.9 s instead of 9.8 s with rules per site).
  • empty_sites: with two drawn sites or more and one set of rules for all of them, the sites where the form keeps no floor although the envelope holds floors there (the other sites took up the coverage or FAR first, as the tallest step does where the envelope is lower on one site); an empty list when every site keeps some, null with rules per site or fewer than two sites.
  • per_storey: each storey with floor area: its bottom and top over the lowest point, the form's floor area, the room, the floors cut and the floors received on it.
  • build_seconds: how long the stage took up to writing plates.json.

The stage reports its progress in parts (the form, each other step compared, the transfer, the files), so a run's progress can draw a bar, and stops between parts when the run is cancelled.

Outputs

In <out_dir>/massing/:

  • room.obj: with a floor area ratio or a site coverage, the room the form could still take in the envelope within coverage;
  • outside.obj: when the form is short of FAR, the floors it needs beyond the envelope (see Room left and floors cut by the envelope);
  • received.obj: with a transfer between sites, the floors the receiving sites take (see Transfer between sites);
  • plates.json: one entry per plate (floor, z bottom and top, outline and holes in world coordinates, area, number of modules (bays), share of its volume outside the envelope), plus the floor area per floor and in total;
  • plates.obj: one closed mesh per plate, named floor_<n>_plate_<m>, written whatever final_mesh_format says (the browser interface draws it and reads its parts by name);
  • plates.ply, plates.stl or plates.glb when final_mesh_format is one of them: the same plates, as one mesh in PLY and STL (formats without named parts) and with one named part per plate in GLB. The manifest names this file as export_mesh_path (plates.obj itself for OBJ). A change of final_mesh_format reruns massing as well as exporting. Far from the origin (georeferenced models) PLY keeps the coordinates in double precision and GLB places the offset in each node, while STL can only hold float32 and the run reports a float32_coordinates issue when that rounds them by more than 1 mm;
  • manifest.json and diagnostics/diagnostic.json (floors built, plates, floor areas, share of the carved envelope inside plates, volume placed outside the envelope through the tolerance, footprint source).

The run report gets a Massing section.

Running it

  • Python: massing(thr_result, cfg, out_dir)
  • CLI: usc massing -c config.yaml (finds the thresholding manifest of the run, or pass -f)
  • Grasshopper: USC_Massing after USC_ThresholdStage, with USC_MassingSettings

Limits

  • Floors count from the lowest point of the maximum volume, at one level across the whole building. Without a terrain, a part that starts higher gets a warning. With a terrain, a floor may reach into sloped ground: the cells below the ground count as filled, so a module is built when its part above the ground stays in the maximum volume (a partly buried storey, with its whole plate area); a module wholly below the ground over the floor's height is not built; and the ground supports the floor above a module that reaches it, as a built plate does with stacked plates. On a 1 in 6 slope under the "New building" example this gives 5 plates and 1,023 m2, where floors counted only above the ground gave none.
  • If the maximum volume's footprint cannot be read from the mesh, or does not match the voxel grid (more than 5% of the occupied voxel columns more than one voxel outside it, for example when the file was replaced after preprocessing), the voxel footprint is used, with a warning; plates can then be up to one voxel larger than the true footprint.
  • Modules are rectangles in their face's frame; there are no interior zones (core, perimeter) and roofs are flat.