# Part XX. Pieces

*Part of 0.5. OpenEik 0.4 had it as the proposal `pieces` (open questions, 124): a model of 0.4, read by 0.4's rules (Part I, 9.6, rule 3), is read by it only where a caller asks for it (decision D12), a model of 0.1 to 0.3 never, and a reader of 0.4 that does not apply it keeps the members it adds as members a schema does not know (Part I, 10). The steward decided question 124 on 31 October 2026, as recommended, (A) on each of its ten points, to be written after the reference implementation had built it; on 5 November 2026, asked whether to write the text and the tools now from the decisions, so that the reference implementation builds against a finished standard, he answered "Skriv nu". Where the decisions leave a detail open, the shape is the editors' (question 126; section 14). Its schemas are in [`schemas/0.5/pieces/`](https://gitlab.com/openeik/spec/-/tree/main/schemas/0.5/pieces), and its command's in `schemas/0.5/commands/`; its cases are in the suite of 0.5, `conformance/`. `@openeik/tools` checks its members, derives its pieces and prints them since 5 November 2026 (section 13). On 5 November 2026 the steward also accepted the editors' detail choices as his decisions, and took now the four items they had left for a later step, which sections 4.5, rule 8, 4.7, 5.6, 5.7 and 6.1 write (section 14).*

## 1. Status and scope

Up to 0.4, OpenEik models a slab on ground as a stack of layers with a slab edge element along each edge (Part IV, 4.2 and 4.6): its insulation is a prism of its outline, counted by volume, and each edge element is one body along its whole edge, counted by length. On site it is built in pieces: edge elements of one standard length in a few shapes, with a corner piece at each corner and a closing piece cut to fit in each run; insulation boards in layers whose joints are staggered; and at a garage door no element, but an edge lowered by a notch and a threshold angle cast in. A framed wall layer is laid out in members from a rule on its type (Part IV, 7.4), but nothing divides an edge or a layer into the pieces of a range, gives a piece a name that survives an edit elsewhere, or lets one piece be changed by hand.

This part says it in the model: a **piece rule** on a type, of two kinds. **Along a line**, a slab edge type's rule divides each of its elements into blocks along its edge (section 4); **over an area**, the rule of a layer of a slab type or a foundation type divides the layer into boards in staggered rows (section 5). The pieces are derived on every compile and never stored (section 3). Each has an id, the cuts made to it, and a mark that the pieces identical to it share (section 6), and they are counted, with a cut list (section 7). A single piece can be adopted as an element of its own, and the layout fits round it (section 8). An edge type's section may be an outline of insulation parts, the concrete cast in it derived as what fills the room they leave (section 2.3), and its type says what its pieces do in an opening (section 4.5).

What it leaves out:

- **Products.** This part knows shapes and sizes, and no product. A maker's range is a library of types, each with the maker's name and article numbers as data (section 11).
- **Other parts of a building.** Wall boards, sheathing, cross-laminated panels, precast elements, reinforcement mesh, cladding and decking may later be laid by a piece rule of one kind or the other, one part at a time. A wall's framing stays as Part IV, 7.4 lays it out.
- **Prices.** A piece is counted; what it costs is no record's (Part II, 12).

### 1.1 The parts it extends

The plan that question 124 decided put the members of this part in Part II and its rules in Part IV, as class-A rules. In 0.5 its text stays in this part, as Part XIX's does. These are the sections it extends, where a later version may move it:

- Part II: a layer's piece rule (5.1); a slab edge type's piece rule and a section of insulation parts (5.6); an element's layout, a notch's fall and an adopted piece (6.3 and 10); a view's `display` (14.3);
- Part III: an adopted piece's owner (4.4);
- Part IV: the rule classes (2); a slab's and a slab edge element's bodies (4.2 and 4.6), notches among them (4.6, rules 12 to 14); quantities (9); the pipes and ducts that hole a piece, which it reads (12);
- Part V: the command of section 9 among the command set (2);
- Part VIII: the classes of section 10 and the parts under them (1);
- Part XIV: the model link and the read set of a drawing that shows pieces (6.8; 6.12, rule 21; 9.7, rule 3);
- Conformance: what a validator, a compiler, a command processor and a bridge do with it.

*Note (informative).* The fabrication profile's list `pieces` (Part II, 1) holds fabricated units, each a record a fabricator states. A piece of this part is derived, and is no record of that list.

## 2. Piece rules

### 2.1 Along a line: a slab edge type's `pieces`

A slab edge type MAY carry `pieces`, its piece rule, held to [`schemas/0.5/pieces/along.schema.json`](https://openeik.org/schemas/0.5/pieces/along.schema.json):

| Member | | Meaning |
|---|---|---|
| `length` | required | a straight piece's length, mm, 100 to 10 000 |
| `corner` | optional | its outer corner piece, `{legs, angle?, pair?}` (section 4.2) |
| `innerCorner` | optional | `"straights"`, the default, or an inner corner piece of its own, `{legs, angle?}` (section 4.2) |
| `cut` | optional | where a run's closing piece is cut: `"end"`, the default, `"start"` or `"middle"` (section 4.3) |
| `minCut` | optional | the least length of a cut piece, mm, 0 (the default) to half of `length` (section 4.3) |
| `cuttable` | optional | `false` where its pieces may not be cut; `true` where it gives none (section 4.3) |
| `opening` | optional | what its pieces do in an opening, and its notches' fall, `opening.fall` in ‰ (section 4.5) |
| `clearance` | optional | the clearance all round a hole for a pipe or a duct, mm, 0 to 100; 10 where it gives none (section 4.7) |
| `mark` | optional | the start of its pieces' marks, 1 to 20 characters; the type's `id` where it gives none (section 6) |
| `maker`, `articles` | optional | its maker's name, and its article numbers by kind of piece, as data (section 11) |

1. **Which types carry it.** Only a slab edge type carries `pieces` as a piece rule; on a type of another category it is a member the schemas do not know (Part I, 10), and nothing reads it.
2. **No framing family.** A slab edge type that is a framing family (Part II, 5.4) MUST NOT carry `pieces`: its section is its family's, which no run divides. A validator reports one that does (`pieces-rule`), and a compiler lays out no pieces of it.
3. **Its sizes.** A corner's `legs` are two lengths, `[a, b]`, each 50 to 10 000 mm, measured along the section's outer face (section 4.1). `angle`, in degrees, more than 0 and less than 180, is the angle the outline turns through at a corner the piece fits, 90 where it gives none. `minCut` MUST be at most half of `length`, so that a run shifted by section 4.3, rule 4 leaves both its cut pieces at least `minCut` long. A validator reports one that is not (`pieces-rule`).

### 2.2 Over an area: a layer's `pieces`

A layer of a slab type or a foundation type (Part II, 5.1) MAY carry `pieces`, its piece rule, which divides the layer into boards, held to [`schemas/0.5/pieces/area.schema.json`](https://openeik.org/schemas/0.5/pieces/area.schema.json):

| Member | | Meaning |
|---|---|---|
| `width` | required | a board's width, mm, 100 to 10 000 |
| `length` | required | a board's length, mm, 100 to 20 000, at least its width |
| `direction` | optional | the direction its length runs in plan, degrees counter-clockwise from the model's x axis, 0 or more and less than 180; 0 where it gives none |
| `bond` | optional | how its rows are staggered: `"half"`, the default, `"third"` or `"stacked"` (section 5.2) |
| `minCut` | optional | the least width of a row, mm, 0 (the default) to half of `width` (section 5.3) |
| `zone` | optional | a zone of a stronger grade under the walls that bear load and the columns, `{material, width?, mark?}` (section 5.6) |
| `clearance` | optional | the clearance all round a hole for a pipe or a duct, mm, 0 to 100; 10 where it gives none (section 5.7) |
| `mark` | optional | the start of its boards' marks, 1 to 20 characters; the type's `id`, a hyphen and the layer's `id` where it gives none (section 6) |
| `maker`, `article` | optional | its maker's name and the boards' article number, as data (section 11) |

1. **Which layers carry it.** Only a layer of a slab type or a foundation type carries `pieces` as a piece rule. A foundation type with a round `footing` (Part II, 5) MUST NOT, nor a layer of no thickness. A validator reports one that does (`pieces-rule`).
2. **Its sizes.** A rule's `length` MUST be at least its `width`, and its `minCut` at most half of its `width`. A validator reports one that is not (`pieces-rule`).
3. **Its thickness and its grade.** A board is as thick as its layer, and of its layer's material, which is its grade (section 7), but in a zone (section 5.6).
4. **A zone's grade.** A rule's `zone` gives `material`, the zone's grade, a plain string of 1 to 60 characters; `width`, how far the zone reaches past a footprint on every side, mm, 0 to 2000, a load spread at 45° where it gives none (section 5.6, rule 3); and `mark`, the start of its boards' marks, 1 to 20 characters. Its `material` SHOULD NOT be its layer's: a validator warns of a zone of its layer's own grade (`pieces-zone`).

### 2.3 A section of insulation parts: a slab edge type's `edgeParts`

By point P9 of question 124. A slab edge type MAY carry `edgeParts`, a section that is an outline of insulation parts, in place of an `edgeProfile` (Part II, 5.6), held to [`schemas/0.5/pieces/edge-parts.schema.json`](https://openeik.org/schemas/0.5/pieces/edge-parts.schema.json): `{anchor, parts}`. `anchor` is `slabTop` or `structureBottom`, as an `edgeProfile`'s is (Part IV, 4.6, rule 4). `parts` holds 1 to 20 parts, each `{role, material, points}`: its `role`, one of `leaf`, `foot`, `leg`, `board`, `face` and `other`; its `material`, a plain string of 1 to 60 characters; and its `points`, 3 to 64 corners `[x, z]` in mm, in the section's plane as an `edgeProfile`'s rectangles are (Part IV, 4.6, rule 2): x across the edge into the host from the edge's line, and z up. A contour does not repeat its first point, and may run either way round.

1. **One section.** A type MUST NOT carry both `edgeParts` and `edgeProfile`, nor `edgeParts` and `framing`. A validator reports one that does (`pieces-section`).
2. **Its parts.** Each part MUST be a simple polygon: no two of its points closer than 0.1 mm, its edges crossing or touching none but where two that follow one another share a point, and its area 1 mm² or more. Two parts MUST NOT overlap by more than 1 mm²; they may touch. A validator reports a part that breaks this rule (`pieces-section`).
3. **Its top.** The section's top is z = 0: the greatest z of its parts MUST be 0, within 0.1 mm. Its depth is the least z of its parts, taken positive. A validator reports a section whose top is not at 0 (`pieces-section`).
4. **Where it lies.** Part IV, 4.6, rules 4 to 6 place it, as they place an `edgeProfile`: its z = 0 at its anchor plus the element's `verticalOffset`, each x at the reach `r(x)` in from the edge's line, its ends square or mitred, the fit of its mitres tried at its least x and its greatest. Each part is a body of its material, its points at the two ends as rule 5 places them. Without a piece rule, the parts are bodies along the whole edge, as an `edgeProfile`'s rectangles are.
5. **The room it leaves.** In the section's plane, with r the reach of a point in from the edge's line (Part IV, 4.6, rule 5), the section's **room** is every point that lies in none of its parts, between their least reach and their greatest, with a part under it on the same vertical line, and under the **cast top**: the section's top, z = 0, at a reach up to the greatest reach of the innermost part that reaches the top (within 0.5 mm), and inside that, the host's top, where it lies under the section's top. Of the room, what lies within the host's outline (a reach of 0 or more), between the underside of the host's structure and the host's top, is the host's own body (Part IV, 4.2), and not the element's. What is left is the element's **cast region**: the concrete cast in it, derived, a body of the element along its edge, of the material of the host's structure, its type's first layer whose `function` is `structure`, else its type's `material`.
6. **A slab below its edge's top.** A host's top MAY lie below its edge elements' top (point P9): within the parts that reach the section's top, the room is cast up to that top, and inside them up to the host's top (rule 5).
7. **No beam, no chamfer.** A section of parts has no `beam` and no `chamfer`, thickens no host and fills none (Part IV, 4.6, rules 9 and 10): its concrete is its cast region. A face is a part of the role `face`.
8. **Notches.** A slab edge element whose type has `edgeParts` MAY carry `notches` (Part IV, 4.6, rule 12), with this part. Each notch MUST run from `from` to at least `from + 10`, MUST end on its edge, MUST be less deep than the section, and MUST NOT overlap another: a validator reports a breach (`notch-invalid`), and 0.4's rule that a notch is cut in an outside upstand alone does not apply to it. Over a notch's stretch, each part and the cast region are cut down to the notch's floor, which falls outward from its `depth` below the section's top (section 4.5, rule 8).

An element 400 mm high, a face 10 mm thick outside its outer leaf, the leaf 50 mm thick from x 0 to 50, its foot 100 mm thick from x 50 to 533 at the bottom, and a board 8 mm thick from x 162 to 170 and 150 mm deep from the top, standing 100 mm over the top of its slab, which is 100 mm thick: its room is the plinth between the leaf and the board, cast to the section's top, and inside the board the beam over the foot, cast to the slab's top. With the slab's outline along the face's outer face (a `horizontalOffset` of 10), the slab's own structure takes the band from its top down to its underside, and the element's cast region is the plinth, 112 by 100 mm, and the beam under that band, 483 by 100 mm: 59 500 mm² (its conformance case XX-2.3.5).

*Note (informative).* Points P8 and P9 were raised for two makers' elements common in Sweden, one that forms an outer and an inner edge beam with an insulating leg between them under a wall with an insulated core, and one with a plinth that stands 100 mm above a garage's floor. Neither is an L with a thickened slab edge: each is an outline of insulation parts, and its concrete is what fills the room they leave. Rule 5 derives it for both, and for an L, an F or a U drawn as parts. Its volume and its beams' sections are what an estimate and a structural check read.

### 2.4 An element's layout: `pieceLayout`

An element MAY say where its pieces lie, by `pieceLayout`, held to [`schemas/0.5/pieces/layout-edge.schema.json`](https://openeik.org/schemas/0.5/pieces/layout-edge.schema.json) and [`layout-area.schema.json`](https://openeik.org/schemas/0.5/pieces/layout-area.schema.json):

1. **A slab edge element's** is `{cut?, shift?}`: `cut`, `"end"`, `"start"` or `"middle"`, which wins over its type's (section 4.3, rule 3); and `shift`, in mm, 0 or more and less than its type's `length`, by which its runs' joints move (section 4.3, rule 5).
2. **A slab's or a foundation's** is a list of 1 to 50 entries, each `{layer, origin?, offset?}`: for its type's layer `layer`, the origin of its boards' grid, a point in plan `[x, y]`, and an offset `[along, across]` in mm, added to it (section 5.2). An entry MUST name a layer of the element's type that carries `pieces`, and a layer at most once. A validator reports one that does not (`pieces-layout`).
3. **Without a rule.** A `pieceLayout` on an element whose type has no piece rule, or a slab edge element's `shift` not less than its type's `length`, is a finding: a validator reports it (`pieces-layout`), and a compiler reads none of it.
4. **A notch's fall.** A notch of a slab edge element (Part IV, 4.6, rule 12) MAY carry `fall`, its floor's fall outward in ‰, 0 to 100, held to [`schemas/0.5/pieces/notch-fall.schema.json`](https://openeik.org/schemas/0.5/pieces/notch-fall.schema.json). It is read where the element's type has `pieces` or `edgeParts` (section 4.5, rule 8), and nowhere else.

## 3. Derived, never stored

1. **Derived.** A compiler that applies this part derives the pieces of every slab edge element whose type has `pieces`, and of every layer that has `pieces`, on every compile, from the records alone, by sections 4 to 6. Moving a corner of a slab, a notch or a void lays them out again.
2. **Never stored.** Pieces are derived data (Part II, 10; Part IV, 1): a writer MUST NOT store them as records. A piece that a person changes is adopted (section 8), and is an element from then on.
3. **The element's bodies.** Where its type divides an element or a layer into pieces, its bodies are its pieces': a slab edge element's are its pieces' and its cast region's (section 2.3, rule 5), and a layer's are its boards', each less its holes (sections 4.7 and 5.7). What no piece is laid in, an opening (section 4.5) or what is left of a run of pieces that may not be cut (section 4.3, rule 7), has no body. The element's volume, and the layer's, is its pieces' and its cast region's; a fitting (section 4.5, rule 6) is a body of its own, and counted apart (section 7, rule 3).
4. **Resolution by type.** A type without a piece rule is continuous, as 0.4 has it: a layer can stay continuous while a building is designed and be divided for production, in one model.
5. **No order.** No piece, id, mark or quantity depends on the order of the model's elements or types.
6. **A layout that cannot be laid.** Where a validator reports an error of section 12 on an element, its type, its host or an adopted piece of it, a compiler lays out none of its pieces: it builds the element as 0.4 does (Part IV, 4.2 and 4.6), and says so (`pieces-not-laid`).

## 4. Pieces along an edge

These rules lay out the pieces of a slab edge element whose type has `pieces` (section 2.1), on the edge of its host's outline from point `a` to point `b`, `L` long, placed as Part IV, 4.6 places it. In them two lengths within 10⁻⁶ mm of each other are equal.

### 4.1 Stations and the outer face

1. **Stations.** A station s is a distance along the edge from `a`, as a notch's `from` and `to` are (Part IV, 4.6, rule 12). Every joint between two pieces is square to the edge, at one station across the whole section.
2. **The outer face** is the face of the section that lies least far in from the edge's line: of an `edgeProfile`, its facing's outer face where it has one, else the outer face of its rectangles; of a section of parts, its parts' least reach. Its reach is `r_out`.
3. **A length along it.** A piece's length is measured along the outer face. The outer face begins at the station σ_a = k_a · r_out at the element's start and ends at σ_b = L + k_b · r_out at its end, k being that end's mitre slide (Part IV, 4.6, rule 6) and 0 at a square end. A piece from a station s to a station t is t − s long, σ_a standing for s at the element's start and σ_b for t at its end.

### 4.2 Corners

1. **A corner of the type.** A corner of the host's outline at an end of the element is a corner of its type where the end is mitred (Part IV, 4.6, rule 6); where the edge round the corner carries a slab edge element of the same type whose end there is mitred too, the first by id where it carries several; and where the outline turns through the angle of the type's piece for that corner (`corner.angle` or `innerCorner.angle`, 90 where it gives none) there, within 0.5°.
2. **An outer corner piece.** At a corner of the type where the outline turns towards its inside, and the type has `corner`, a corner piece goes: its leg `legs[0]` along the edge that ends at the corner, and its leg `legs[1]` along the edge that starts there, each measured along its outer face from the corner. Each leg's joint with the next piece of its edge is square.
3. **One piece, or a pair.** Without `pair`, or where it is `false`, the corner piece is one piece, of the element on the edge that starts at the corner: its first piece, its two legs its bodies, the leg along the edge before the corner lying on that edge's element. With `pair: true`, the corner is two pieces, each of the element its leg lies on.
4. **An inner corner.** At a corner of the type where the outline turns away from its inside, an inner corner piece goes where `innerCorner` gives `legs`, as rules 2 and 3 place an outer one, as one piece. Where `innerCorner` is `"straights"` or absent, none: the runs meet on the corner's bisector, and the piece of each run there is cut with a mitre.
5. **Any other end.** At an end that is no corner of the type, no corner piece goes: the run reaches the end, and its piece there is cut with a mitre where the end is mitred.

### 4.3 Runs

1. **Stretches.** The element's edge, less the legs of the corner pieces at its ends, less its openings where no piece lies (section 4.5) and less its adopted pieces (section 8), falls into stretches, each a **run**, laid from its start along the edge's direction.
2. **Its pieces.** A run R long holds n straights, n = ⌊R / ℓ⌋, ℓ the type's `length`, and a closing piece c = R − n·ℓ long. A remainder of 1 mm or less is no piece: the run then holds n straights, the last reaching its end.
3. **Where the cut goes.** The closing piece lies at the run's end where the cut is `"end"`, at its start where it is `"start"`, and, where it is `"middle"`, after the first ⌈n / 2⌉ straights. An element's `pieceLayout.cut` wins over its type's `cut`.
4. **The least cut.** Where c is less than `minCut` and n is 1 or more, two pieces are cut instead, each (c + ℓ) / 2 long, and n − 1 straights remain: at the run's two ends for `"end"` and `"start"`, and side by side where the closing piece would lie for `"middle"`.
5. **A shift.** Where the element's `pieceLayout.shift` is more than 0, the first piece of each of its runs longer than ℓ − shift is a cut piece ℓ − shift long, and rules 2 to 4 lay the rest of the run.
6. **A short run.** A run no longer than ℓ is one piece of its length, a straight where it is ℓ long and a cut piece otherwise. Where it is shorter than `minCut` it is laid all the same, and a compiler says so (`pieces-short`).
7. **Pieces that may not be cut.** Where `cuttable` is `false`, a run holds its n straights from its start, and what is left at its end, where it is more than 1 mm, has no piece: a compiler says so (`pieces-uncut`).

### 4.4 Ids

1. **A piece's id** is `<element>:<run>:<k>`: `<element>` the slab edge element's id; `<run>` names where its run starts: `a`, at the edge's start; `o<i>`, at the end of the element's i-th notch along its edge, counted from 1, where no piece lies in it (section 4.5); or the id of an adopted piece, at its end (section 8); and `<k>` counts the run's pieces from 1, in the edge's direction.
2. **Corner pieces.** The corner piece at the edge's start is `<element>:a:0`. Of a pair, the leg at the edge's end is `<element>:b:0`.
3. **What survives an edit.** A run's ids depend on its own stretch alone: lengthening one edge of a slab renumbers no piece of another edge, and none before the change on its own.
4. **Unique.** A piece's id begins with its element's id and a `:`, so the pieces of two elements have two ids, but where one element's id is another's followed by `:` and more. A writer SHOULD NOT name an element so where either has pieces: a bridge keys a piece by its id (section 10).

### 4.5 Openings

1. **An opening** is a notch of the element (Part IV, 4.6, rule 12).
2. **What its pieces do there** is its type's `opening.pieces` (point P10): `"none"`, the default (point P4), and no piece lies in the notch: the run before it ends at its `from`, and the next starts at its `to`; or `"through"`, and the run goes on through it, each piece cut down to the notch's floor (rule 8) over the stretch it shares with the notch: an `edgeProfile`'s outside upstand and its facing, as Part IV, 4.6, rule 13 cuts them, and every part of a section of parts (section 2.3, rule 8).
3. **The cast region.** A notch cuts an element's cast region down to its floor, whatever its type's `opening` says. What it does to the host's own body is Part IV, 4.6, rule 14's.
4. **A threshold.** With `"none"`, and an `opening.threshold`, a **threshold angle** runs along each notch, from its `from` to its `to`: an angle whose leg on the top, into the host, is `threshold.width` long and lies on the notch's floor, whose leg down the outer face is `threshold.depth` long, both `threshold.thickness` thick, its corner at the outer face at the notch's depth below the section's top; of `threshold.material`, and bought in lengths of `threshold.stock` mm, where it gives them.
5. **Stop-ends.** With `"through"`, and an `opening.stopEnds`, a **stop-end** closes the cast region above the notch's floor at each end of each notch, inside it: a board `stopEnds.thickness` thick, square to the edge, its face the cast region above the floor, of `stopEnds.material`. A section with no cast region, an `edgeProfile`'s, has no stop-ends; a validator says so (`pieces-fitting`).
6. **Fittings.** A threshold angle and a stop-end are **fittings**: not pieces, but parts the element's openings take, each with an id, `<element>:o<i>:threshold` and `<element>:o<i>:stop:1` at the notch's `from` and `:stop:2` at its `to`, i counting every notch of the element along its edge from 1.
7. **Where it may lie.** A notch of an element whose pieces stop in it, or run through it, MUST lie between the legs of the corner pieces at the element's ends. A compiler lays out none of the pieces of an element with one that reaches into a leg, and says so (`pieces-opening`).
8. **A fall.** By the steward's decision of 5 November 2026 (section 14), a notch's **floor** falls outward, away from the door, so that water runs off it: it is the plane, level along the edge, through the notch's `depth` below the section's top at the section's outer face (section 4.1, rule 2), rising inward, into the host, by the notch's fall, f ‰, f mm in each metre. f is the notch's own `fall` (section 2.4, rule 4) where it gives one, else its type's `opening.fall`, else 20, a fall of 1 in 50. A fall of 0 makes the floor level, at the notch's `depth`, as Part IV, 4.6, rule 13 cuts it. A notch of an element whose type has a section of parts and no piece rule falls so too (section 2.3, rule 8).

*Note (informative).* A garage floor falls to its door, and its threshold carries the fall on out, so that water and melt run off the floor and never back under the door. Guides ask for 1 in 50 to 1 in 100 at a threshold; 20 ‰ is the steeper end, the one that still drains where the cast is a little uneven. The depth at the outer face is the deepest point of the floor, which keeps a notch's depth what Part IV, 4.6, rule 12 checks.

### 4.6 Bodies

1. **A piece's bodies** are its section carried along its stretch: each of an `edgeProfile`'s rectangles, its chamfered upstand and its facing (Part IV, 4.6, rules 2, 3 and 7), or each part of a section of parts (section 2.3), between the piece's two ends as Part IV, 4.6, rule 13 places a stretch: an end that is the element's own is that end, square or mitred, and any other end is cut square at its station. Where a piece shares a stretch with a notch its pieces run through, it is cut down to the notch's floor there (section 4.5, rules 2 and 8); and its holes are taken out of it (section 4.7).
2. **A corner piece's legs** are each so on the edge of the element it lies on.
3. **The cast region** is one body of the element along its whole edge, cut down to the floor of each of its notches (section 4.5, rule 3), and of no piece.
4. **A fitting's body.** A threshold angle is its section carried along its notch, its top leg on the notch's floor; a stop-end its face carried across its thickness.

### 4.7 Holes for pipes and ducts

By the steward's decision of 5 November 2026 (section 14). These rules cut a hole in the pieces of a slab edge element whose type has `pieces`, where a pipe or a duct passes through it.

1. **A run's axis and its hole section.** A pipe's or a duct's **axis** is the straight lines between its points (Part IV, 12.1, rule 1), each bend taken as its corner, as its length is measured (Part IV, 12.4, rule 2). Its **hole section** is its outer section (Part IV, 12.1, rule 3), W across, or W wide and H high, grown on every side by the clearance c, the piece rule's `clearance`, 10 mm where it gives none: a circle W + 2c across, or a rectangle W + 2c wide and H + 2c high. A cable carrier, a cable and a provision for a void (Part II, 6.10) cut no hole.
2. **Where it passes.** A run passes through the element where a piece of its axis crosses the plane of the section's outer face (section 4.1, rule 2), the vertical plane at the reach `r_out` from the edge's line: at a station from σ_a to σ_b (section 4.1, rule 3), and at a height from the section's bottom to its top. Its **way through** runs from that point into the section, along that piece of the axis, to where the piece crosses the plane of the section's inner face, its greatest reach, or leaves the section's height, or ends, whichever comes first. A piece of the axis that lies in the plane of the outer face crosses it nowhere.
3. **The hole** is cut through the whole section, square to the edge: seen square to it, in stations and heights, it is the convex hull of the hole section placed at each end of the way through, a circle centred there, or a rectangle W + 2c along the edge and H + 2c high centred there. A run that passes square to the edge and level makes a hole of its hole section; an oblique or a sloped one, a longer hole.
4. **Which pieces.** The hole is cut in each piece whose stretch on the edge (section 4.6, rules 1 and 2), a corner piece's leg on it among them, its extent along the edge overlaps by more than 1 mm: from each of the piece's bodies, every point within the hole is taken out. It takes nothing out of the cast region, which is cast round the run, nor out of a fitting. An adopted piece (section 8) is an element, its shape its own, and no hole is cut in it by these rules.
5. **Still the piece.** A piece with a hole keeps its id and its kind, lists the hole in its cuts (section 6, rule 1), and is marked as holed (section 6, rule 7).

A drain 110 mm across that leaves the plan's slab square through its first edge, 250 mm under its top, at 2400 mm along it: the hole is a circle 130 mm across, centred 250 mm down at 2400 mm, cut in the straight `edge-s:a:2`, from 1800 to 3000 mm, which is marked `L4-H1` (its conformance case XX-4.7.3).

*Note (informative).* Makers' guides ask for a hole a little larger than the pipe through an edge element, sealed round it after: 10 mm all round is the editors' choice, which a type can change. A run that lies along inside an edge element, or passes down through its foot alone, crosses no outer face and cuts no hole by these rules; a groove cut for a run laid in insulation is left for a later step (section 14).

## 5. Boards over an area

These rules lay out the boards of each layer that has `pieces` (section 2.2) of a slab or a foundation, whose top is level: a slab on a sloped plane (Part II, 6.3.1) has no boards, which a compiler says (`pieces-not-laid`).

### 5.1 The layer's region

1. **The region** is where the layer's whole thickness lies in plan: its outline, trimmed where its edges are trimmed to a wall's face, inset by the layer's `inset`, less the element's voids, and less what thickened edges and shafts take out of the layer (Part IV, 4.2, rules 2, 4, 6 and 8; 4.5; 4.6, rule 9); where the layer's body is several bands, the region they all cover. A part of the layer that a beam or a shaft takes only some of the thickness of is in no board.
2. **Adopted boards.** The outlines of the boards adopted from the layer (section 8) are taken out of it.

### 5.2 The grid

1. **Its frame.** A board's length runs along u, the rule's `direction`, and its width along v, u turned 90° counter-clockwise. A point in plan is at u and v from the grid's origin.
2. **Its origin** is the element's `pieceLayout` entry's `origin` for the layer where it gives one; else the corner of the region's bounding box least in u and least in v. Its `offset`, `[along, across]`, moves the origin by `along` in u and `across` in v.
3. **Rows.** Row j covers v from v0 + j·w to v0 + (j + 1)·w, w the rule's `width` and v0 the origin's v.
4. **The bond.** The boards of row j begin at u0 + s_j + i·ℓ, ℓ the rule's `length`, u0 the origin's u, and s_j = (j · d) mod ℓ, 0 ≤ s_j < ℓ, where d is ℓ / 2 for `"half"`, ℓ / 3 for `"third"` and 0 for `"stacked"`.
5. **A board's cell** is the rectangle of row j from u0 + s_j + i·ℓ to u0 + s_j + (i + 1)·ℓ.

### 5.3 Rows and the least cut

1. **The rows' extent.** The region lies across from v_min to v_max. Where its first row in it or its last is less than `minCut` wide, and more than 1 mm wide, and the region holds more than one row, the rows are centred on it: v0 is moved to v_min − (w − r) / 2, where r = (v_max − v_min) − ⌊(v_max − v_min) / w⌋·w, so that its two outer rows are each (w + r) / 2 wide; where r is 1 mm or less, v0 is moved to v_min, and every row is whole.
2. **Along a row**, a board is cut where the region ends, whatever its length is.
3. **A sliver.** A board's part of the region less than 1 mm² in area is no board.

### 5.4 Ids

1. **A board's id** is `<element>:board:<layer>:<j>:<i>`: its element's id, its layer's id, its row and its cell's place in the row (section 5.2), each an integer, negative where it lies before the origin.
2. **A cell in parts.** Where a cell meets the region in several parts, each is a board: the part whose least point is least in u, then in v, has the cell's id, and the others that id followed by `:2`, `:3` and so on, in that order.

### 5.5 Bodies

1. A board's body is its part of its cell, a polygon with its holes, in plan, from the layer's underside to its top, less the holes of section 5.7.

### 5.6 Zones of a stronger grade

By the steward's decision of 5 November 2026 (section 14). A layer's rule MAY give `zone` (section 2.2, rule 4): a zone of the layer laid in a stronger grade, its `material`, under the walls that bear load and the columns that stand on the element.

1. **What bears on it.** The walls and columns that make a slab's or a foundation's zones are the elements of its level, its `levelId`: each wall whose `structural` is `true`, or that a roof's truss layout names among its `bearingWallIds` (Part II, 7; Part IV, 7.4.13, rule 3); and each column, a point load.
2. **Footprints.** A wall's footprint is, along each straight piece of its baseline (its `profile`), the rectangle between its two faces, its thickness its type's layers' or its `width` (Part IV, 4.1), its ends square. A column's is the rectangle of its type's section's `width` and `depth`, or of its own `width` both ways where its type gives no section, centred on its point and turned by its `turn`.
3. **The zone** is the union of the footprints, each grown by the zone's `width`, w, on every side, along a wall at each end as across it; within the layer's region (section 5.1). Where the rule gives no `width`, w is the load's spread at 45° down through the slab's layers below its structure: the depth of the layer's underside below the underside of the element's type's first layer whose `function` is `structure`, or below its top where it has none; the layer's own thickness where that depth is none. So the zone of a lower layer reaches further than an upper one's, as the load spreads.
4. **Its boards.** The layer is laid on its grid (sections 5.2 and 5.3) as it is without a zone, and the zone's outline cuts each cell it crosses. A cell's part in the zone is a board of the zone's `material`, and its part outside it a board of the layer's; each part a board as section 5.3, rule 3 and section 5.4, rule 2 make it. A board is whole where its part is its whole cell (section 6, rule 3), in the zone or out of it.
5. **Ids.** A board in the zone has the id its cell's board would have, followed by `:z`: `<element>:board:<layer>:<j>:<i>:z`, and a cell's further parts in the zone `:z:2`, `:z:3` and so on, in the order of section 5.4, rule 2. A board out of the zone is named by section 5.4, so that one a zone does not reach keeps the id it had before the zone came.
6. **Its marks and quantities** are section 6, rule 8's and section 7's: the zone's boards are marked and scheduled as a rule of their own, of their own grade.

The plan's slab with a wall that bears load, 6000 mm long and 200 mm thick, 750 mm in from its first edge: its zone, with a `width` of 300 mm, is 6600 by 800 mm, and holds the first row of the first layer's boards, 700 mm wide, over the wall's length and 300 mm past each end. Four boards lie in it, of the zone's grade, marked `B-Z-1` to `B-Z-3`, and the row's boards beyond it are cut at its ends (its conformance case XX-5.6.4).

*Note (informative).* EN 13163 classes an insulation board by its compressive stress at 10 % deformation: an S100 board, 100 kPa, is common under a slab on ground, and an S200 or S300 board where a wall or a column bears on the slab. A wall's load spreads through the slab at about 45°, and a slab 100 mm thick on a strip footing spreads it 100 to 200 mm past the wall on each side: By the steward's decision, a zone reaches as far as a 45° spread down through the layers below the structure, wider under thicker insulation, unless its rule gives a `width`: under 200 mm of boards, 200 mm past a footprint on each side. A grid that leaves a narrow strip beside a zone can be moved by the element's layout (section 2.4, rule 2). A wall a floor's joists bear on (Part IV, 7.4.15.1) is found from geometry, and is not read here: it is marked `structural`.

### 5.7 Holes for pipes and ducts

By the steward's decision of 5 November 2026 (section 14).

1. **Where it passes.** A pipe or a duct passes through a layer that has `pieces` where a piece of its axis (section 4.7, rule 1) crosses the plane of the layer's top or of its underside. Its **way through** runs from that point into the layer, along that piece of the axis, to where it crosses the other plane, or ends, whichever comes first. A piece of the axis that lies in one of the planes crosses it nowhere.
2. **The hole** is cut through the layer's whole thickness, square to it: in plan, it is the convex hull of the hole section (section 4.7, rule 1, with this rule's `clearance`) placed at each end of the way through: a circle centred there, or a rectangle W + 2c along the run's side vector s and H + 2c square to it, s taken on the piece of the axis as Part IV, 12.3, rule 3 takes it: the unit vector of t × Z, t the piece's direction, and of a vertical piece the piece's before it, else after it, else the model's x axis.
3. **Which boards.** The hole is cut in each board whose part (section 5.4) it meets by 1 mm² or more, in a zone or out of it. A board keeps its id, its kind and its area as sections 6 and 7 measure them, its part of its cell; its body, and so its volume and its layer's, is its part less the holes. It lists each hole in its cuts (section 6, rule 2), and is marked as holed (section 6, rule 7). An adopted board is an element, its shape its own, and no hole is cut in it by these rules.

## 6. Cuts and marks

1. **An edge piece's cuts**, in this order: `length`, where it is cut to a length other than its whole piece's, with that length; `mitre`, at its `start` or its `end`, with its `angle` from square in plan, in degrees to 0.01; `height`, over the stretch it shares with a notch its pieces run through, `{from, to, depth, fall}`, in mm along the piece from its start and down from the section's top at its outer face, each to 0.1 mm, and the floor's fall in ‰ to 0.1 (section 4.5, rule 8); and `penetration`, for each hole (section 4.7), `{run, shape, size, from, to}`: the run's id; `round` or `rectangular`; the hole section's size, `[d]` or `[w, h]`; and the two ends of its way through, each `[along, down]`, in mm along the piece's outer face from its start (a corner piece's from the start of its leg before the corner) and down from the section's top, to 0.1 mm. Its penetrations are in the order of their `from`, along and then down, then of their run's id.
2. **A board's cuts**: `edge`, where its part is not its whole cell; `hole`, where its part has holes; and `penetration`, for each hole of section 5.7, `{run, shape, size, from, to}` as rule 1 says, its ends `[u, v]` in the grid's frame from the least corner of the board's box, to 0.1 mm, in the order of rule 1.
3. **Its kind.** An edge piece is a `corner` (an outer corner piece, one piece), a `cornerBefore` and a `cornerAfter` (a pair's legs, before and after the corner along the outline), an `innerCorner`, a `straight` (a whole straight, its length ℓ within 1 mm and no cut), or a `cut` (a straight with a cut). A board is `whole` (its whole cell, within 1 mm at each corner) or `cut`. A penetration makes no piece a cut one: a straight with a hole is a straight, and a whole board with one is whole.
4. **Identical pieces.** Two pieces of one rule are identical where they are of one kind, one length or one outline, and the same cuts, a penetration compared without its run: an edge piece by its kind, its length to 0.1 mm and its cuts; a board by its outline and its holes in the grid's frame, measured from the least corner of its box, each point to 0.1 mm, and its penetrations. A board of a zone's grade and one of its layer's are of two rules (rule 8).
5. **Marks.** Every piece of a rule has a mark that begins with the rule's `mark` (section 2.1 and 2.2), p: a whole straight and a whole board `p`; a corner piece `p-K`, a pair's legs `p-KA` and `p-KB`, an inner corner piece `p-I`; and a cut piece `p-<n>`, n numbering the rule's distinct cut pieces in the whole model from 1, the longest first, an edge piece by its length and a board by its area, and those as long, or as large, by their description under rule 4 in code-unit order. Identical pieces share one mark.
6. **Fittings' marks.** A threshold angle's mark is `p-T`, a stop-end's `p-S`.
7. **Holed pieces.** A piece with a penetration (sections 4.7 and 5.7) is marked by rules 5 and 6 as it would be without its penetrations, its cut pieces numbered without them, and that mark is followed by `-H` and a number: the distinct sets of penetrations that pieces of that mark have in the whole model, each described as rule 4 compares it, numbered from 1 in the code-unit order of their descriptions. `L4-H1` is a straight with a hole, and `L4-2-H1` a cut piece of the mark `L4-2` with one; identical holed pieces share one mark.
8. **A zone's boards** (section 5.6) are marked as a rule of their own, by rules 5 and 7: their start is the zone's `mark`, or, where it gives none, the rule's mark followed by `-Z`. `B-Z` is a whole board of the zone's grade, and `B-Z-1` its largest cut one.

*Note (informative).* A piece's mark follows the layout, as its id does: worked out, not kept. The reference implementation numbers its hollow-core floor elements so, one mark for one product, size and set of holes (`precastMarks` in `src/core/elements/floorElements.ts`).

### 6.1 Piece plans on drawing sheets

By the steward's decision of 5 November 2026 (section 14). A drawing sheet (Part XIV) serves as a laying plan where a plan on it shows a layer's boards and an edge's pieces, each with its mark.

1. **The view asks for it.** A plan's `display.pieces`, `{layers?, edges?, marks?}`, held to [`schemas/0.5/pieces/display.schema.json`](https://openeik.org/schemas/0.5/pieces/display.schema.json), asks for its pieces: `layers`, the ids of 1 to 20 layers whose boards it draws; `edges`, `true` where it draws slab edge elements as their pieces; and `marks`, `false` where it draws no marks, each piece's mark otherwise. Such a plan draws each slab or foundation of its level whose type has a layer it names with `pieces` as that layer's boards, seen from above whatever lies over them, and, with `edges`, each slab edge element of its level whose type has `pieces` as its pieces and its fittings: each by its outline in plan, with its mark inside it. It draws its other elements as it would without it. On a view of another kind it means nothing, and a validator warns of it there, and of a layer it names that no slab or foundation type of the model gives a rule (`pieces-view`).
2. **Its model link.** In an issued drawing (Part XIV, 6.8), each piece and each fitting drawn is a group of its own in a `derived` layer, its `data-eik-id` the piece's id, `<element>:<piece>` (sections 4.4, 4.5, rule 6, 5.4 and 5.6, rule 5), its mark a primitive of the role `text` in it. An adopted piece is an element, and its group carries its own id (Part XIV, 6.12, rule 21).
3. **What it reads.** A piece has no record of its own. A viewport that draws one reads its element, as an element drawn, and its element's type (Part XIV, 9.7, rules 3 and 4); and it SHOULD read every record its layout depends on: its element's host, the other slab edge elements on the host's outline and their types, its element's adopted pieces, and the pipes, ducts, walls, columns and roofs whose holes and zones it has, so that a change to any of them makes the viewport stale (Part XIV, 9.4).

*Note (informative).* A setting of the view, and not a detail item that lists pieces: a piece plan is the view's own drawing of its elements, derived as the rest of it is, and the marks are what the people who lay the boards read. Its table, the cut list, is section 7's schedule, which the drawing application sets on a sheet as it sets any schedule. A piece's id is the one a bridge keys it by (section 10), so that a review item anchored to it on a sheet names the same piece in IFC.

## 7. Quantities

1. **Counts.** A slab edge element's quantities hold `pieces`, the count of its pieces, and `cast`, its cast region's volume, where it has one; a slab's or a foundation's hold `pieces`, the count of its boards in all its layers, and `zone`, the volume of its boards of a zone's grade (section 5.6), where it has any. Its volume and its layers' are its bodies' (section 3, rule 3), its holes taken out, its zones' boards in them.
2. **A schedule**, for each rule and each mark: the count; an edge piece's kind, length and cuts, and its section's materials; a board's width, length and area, its cuts and its layer's material, its grade; and, per piece, the stock it is cut from, a whole piece of its kind, a straight for a cut piece and a board for a cut board, and its offcut, the stock's length or area less its own. The waste of a rule is the sum of its offcuts. A zone's boards are a rule of their own, `<type>/<layer>/zone`, of the zone's grade; a holed piece's stock and offcut are those of its mark without its holes.
3. **Fittings.** A threshold angle is counted by its length, and each notch's in ⌈length / stock⌉ stock lengths where its type gives `threshold.stock`; a stop-end by number.

The edge of a slab whose elements' outer faces make a rectangle 12 500 by 8300 mm, of a type of 1200 mm straights and corner pieces of two legs of 600 mm, with a notch 2400 mm wide in its first edge from 5200 to 7600 mm, its pieces stopping there: 4 corner pieces, 25 straights and 5 cut pieces, 500, 1100, 1100, 1000 and 700 mm, where 0.4 counts 39.2 m. Its first layer of boards, 2400 by 1200 mm in a half bond, over a region of 11 600 by 7400 mm whose last row would be 200 mm wide, with a `minCut` of 300 mm: its rows are centred, its two outer rows 700 mm wide, and it has 20 whole boards and 18 cut, of five marks.

## 8. Adopting a piece

1. **An adopted piece** is an element that carries `pieceHost`, held to [`schemas/0.5/pieces/host-edge.schema.json`](https://openeik.org/schemas/0.5/pieces/host-edge.schema.json) or [`host-board.schema.json`](https://openeik.org/schemas/0.5/pieces/host-board.schema.json): the element `element` that it is a piece of, and the id `piece` the piece had there. Point P3 decided it: a piece is derived, and one adopted by hand is an element that names its host and its piece.
   - **An edge piece** is a slab edge element, `pieceHost` `{element, piece, from, to}`: its `hostId` and `hostEdgeId` its element's, and its stretch from `from` to `to`, stations along that edge (section 4.1). Its body is its own type's section from `from` to `to`, placed as Part IV, 4.6, rule 13 places a stretch: square at its ends, but at 0 and at `L`, where it takes the edge's own end. It has no cast region: its element's runs along the whole edge (section 4.6, rule 3).
   - **A board** is an element of its element's category, a slab or a foundation, `pieceHost` `{element, piece, layer}`, the board's layer named: its outline is its own `profile`, and its body its own type's by Part IV, 4.2.
2. **What it names.** `element` MUST name an element whose type has a piece rule, a slab edge element on the same host's edge for an edge piece, and a slab or a foundation whose type's layer `layer` has `pieces` for a board; `piece` MUST begin with that element's id followed by `:`; an edge piece's stretch MUST lie on the edge, at least 10 mm long, and MUST NOT overlap another adopted piece of its element or a notch; and two adopted pieces MUST NOT name one piece. A validator reports a breach (`pieces-adopted`).
3. **The layout fits round it.** Its element's runs stop at an adopted edge piece's `from` and start again at its `to`: the stretch before it keeps its run's name, its pieces counted from 1 and passing over the numbers that the run's adopted pieces hold, so that a piece adopted where it lay leaves every id before it as it was; and the stretch after it is the run that its piece id names (section 4.4, rule 1). An adopted board's outline is taken out of its layer's region (section 5.1, rule 2), and its cell is laid no board, wherever the rest of the cell lies.
4. **It is still the piece.** It is counted among its element's pieces, with its piece's id and its own length or outline, and marked as a derived piece is (section 6); a bridge writes it under its element, as the piece it is (section 10). It has no pieces of its own, whatever its type says.
5. **Its owner.** An adopted piece is owned as its element is (Part III, 4.4; Part XVI): a writer that adopts one gives it its element's owner, as an `owner` where its own category would give it another (Part III, 4.4.1).

*Note (informative).* Adopting writes the piece as it lies, and a person then changes it: a closing piece made longer, a straight moved, a board cut round a pipe. The runs round it are laid again, and the pieces before it keep their ids. Releasing it is deleting the element. Today a single stud cannot be adopted (Part IV, 7.4.12, rule 2): the same rule may later let one be.

## 9. Commands

One command of its own adopts a piece, by Part V's rules: it is checked before anything changes, by its schema ([`schemas/0.5/commands/piece.adopt.schema.json`](https://openeik.org/schemas/0.5/commands/piece.adopt.schema.json)), its own rules and the whole model, and it names the state it was made from (Part V, 3).

| Kind | Does | Precondition |
|---|---|---|
| `piece.adopt` | writes an element `id` that adopts the piece `piece` of the element `element` as its layout lies now: `{kind, element, piece, id, typeId?, expectedRevision?}` | `expectedRevision`: the element's revision as read (optional) |

1. **What it writes.** An edge piece: a slab edge element of its element's type, host, edge, level, offsets, `flipped` and `miterEnds`, with `pieceHost` `{element, piece, from, to}`, its stretch the piece's. A board: an element of its element's category and level, of the type `typeId`, which a board's adoption MUST give, its `profile` the board's outline, its `offset` putting its top at its layer's top, with `pieceHost` `{element, piece, layer}`. Its name is the piece's mark and id, and its `owner` its element's (section 8, rule 5).
2. **Refusals.** A piece its element's layout does not lay now is refused (`target-missing`, Part XVII, 10.4), as are an `id` that an element has (`id-duplicate`) and a board's adoption without a `typeId` of its element's category (`schema-invalid`). In an envelope it gives its precondition (Part XVII, 9.1).

## 10. Bridges

With this part, a bridge to IFC 4 (Part VIII, 1) writes:

1. **A slab on ground** as IfcSlab, its predefined type BASESLAB: a slab that hosts a slab edge element whose type has `pieces` (point P5).
2. **Its edge** as IfcFooting, its predefined type STRIP_FOOTING: a slab edge element whose type has `pieces`, its own body its cast region where it has one.
3. **Each piece** as an IfcBuildingElementPart, its predefined type INSULATION, aggregated under its element by an IfcRelAggregates, as a wall's members are (Part IV, 7.4.11): its GlobalId from `piece:<piece id>`, its name its mark, its tag its id, its object type its kind, its bodies its shape, its holes taken out, its material its section's or its layer's, a zone's board's its zone's. An adopted piece is written so, under its element, and as no element of its own: its GlobalId stays the one its piece had.
4. **Each fitting** as an IfcDiscreteAccessory, USERDEFINED, of the object type `THRESHOLD` or `STOPEND`, aggregated under its element with its pieces, its GlobalId from `fitting:<fitting id>`.
5. **A maker's data.** Where its rule gives `maker`, or an article number for its kind (section 11), each piece's Pset_ManufacturerTypeInformation, its `Manufacturer` and its `ArticleNumber`.

## 11. Makers' ranges

1. **A range is a library of types.** A maker's range is a set of types, each a slab edge type with its section and its `pieces`, or a slab type whose layers carry theirs, which a person, a maker or an application adds to a model as it adds any type (point P2). Its maker's name is the rule's `maker`, and its article numbers are its rule's `articles`, `{straight?, corner?, cornerBefore?, cornerAfter?, innerCorner?}`, or a layer rule's `article`: plain strings of 1 to 80 characters, data that no rule of this part reads but section 10.
2. **No product named.** This specification, its schemas and its cases name no product and no maker: they know shapes and sizes. A custom block is one more type.

*Note (informative).* By point P8, the reference implementation ships the range most slabs on ground in Sweden are built from as such a library, beside generic L, F and U types, each type with its maker's name and article number and no price. In OpenEik it is data: the shapes are outlines, and another maker's range is added the same way.

## 12. What a validator reports

A validator that applies this part checks the members of section 2 on types, the layouts and adopted pieces of section 2.4 and 8 on elements, and reports:

| Code | Severity | Rule | What |
|---|---|---|---|
| `pieces-rule` | error | XX.2.1.2 | a piece rule on a framing family, a corner's or a run's sizes that section 2.1, rule 3 does not allow, a layer's rule on a round footing's type or a layer of no thickness, or a board shorter than it is wide or a `minCut` over half its width (2.2) |
| `pieces-zone` | warning | XX.2.2.4 | a layer's zone of the layer's own grade, its `material` the layer's |
| `pieces-section` | error | XX.2.3.1 | a section of parts beside an `edgeProfile` or a framing family, a part that is no simple polygon or that overlaps another, or a top that is not at 0 (2.3, rules 1 to 3) |
| `pieces-layout` | error | XX.2.4.2 | a slab's layout entry that names no layer of its type with a rule, or one twice; a layout on an element whose type has no rule; a shift not less than its type's length (2.4) |
| `pieces-fitting` | warning | XX.4.5.5 | stop-ends on a type whose section has no cast region |
| `pieces-adopted` | error | XX.8.2 | an adopted piece that names no element with a rule, a piece of another element, a stretch off its edge, shorter than 10 mm or over another adopted piece or a notch, a layer that has no rule, or a piece that another adopted piece names |
| `pieces-view` | warning | XX.6.1.1 | a view's `display.pieces` on a view that is no plan, or naming a layer that no slab or foundation type of the model gives a rule |

`notch-invalid` (Part IV, 4.6, rule 12) reports a section of parts' notches by section 2.3, rule 8. An error makes the model invalid, as any error of the whole-model check does (Part III, 12, rule 5).

A compiler that applies this part says, beside its bodies (Part IV, 1):

| Code | Severity | Rule | What |
|---|---|---|---|
| `pieces-not-laid` | warning | XX.3.6 | an element or a layer whose pieces are not laid out, and why: an error of section 12 on it, its type, its host or an adopted piece of it; a slab on a sloped plane; corner pieces' legs longer than their edge |
| `pieces-opening` | warning | XX.4.5.7 | a notch that reaches into a corner piece's leg: the element's pieces are not laid out |
| `pieces-short` | info | XX.4.3.6 | a run shorter than its type's `minCut`, laid as one cut piece |
| `pieces-uncut` | warning | XX.4.3.7 | what is left at a run's end where its pieces may not be cut, which no piece fills |

## 13. Conformance

A validator of 0.5 reports what section 12 lists. A compiler derives the pieces of sections 4 and 5, with their ids, cuts, marks and bodies (section 6), and the quantities of section 7, by class-A rules (Part IV, 2), held to Part IV, 10's tolerances: each body within 0.1 mm, each length within 10⁻⁶ mm, and ids, marks, cuts and counts exactly. Which points stand on a round hole's outline is a compiler's faceting, as a run's is (Part IV, 12.3, rule 5); a hole's description in the cuts is the rule. A command processor implements section 9. A bridge writes what section 10 says. A generator of drawings draws section 6.1's piece plans, and a checker accepts their ids (Part XIV, 6.12, rule 21). A writer stores no piece (section 3, rule 2). No class of 0.4 requires any of it: each class applies it to a model of 0.4 where the proposal `pieces` is asked for.

*Note (informative).* `@openeik/tools` implements the validator's, the compiler's, the command processor's and the bridge's parts since 5 November 2026, for a model of 0.5 and for one of 0.4 asked for with `proposals: ["pieces"]`: `checkFolder` and `checkModel` check the members (`piecesChecks`, `PIECES_CODES`, in `packages/openeik/src/pieces.js`); `compileModel` lays out the pieces, its result's `pieces` and `pieceSchedule` beside its bodies (`runPieces`, `castRegion`, `boardLayout` and `markPieces` in `packages/openeik/src/compile-pieces.js`, called by `compilePieceEdge` and `layBoards` in `compile.js`); `applyCommands` runs `piece.adopt`; and `ifcOfModel` writes the classes and the parts of section 10. The same day it took the steward's four later items: a notch's floor falls (`notchFloor`), holes are found and cut (`runAxes`, `edgeHoles`, `boardHoles`, `cutConvex` in `compile-pieces.js`), zones are found and laid (`zoneShapes`, and `boardLayout`'s `zone`), holed and zone pieces are marked (`markPieces`), and a drawing's checks accept a piece's id and ask its read set for its element and its type (`pieceElementOf` in `packages/openeik/src/drawings.js`). The checks hold a piece's id to an element whose type has a rule; they do not lay out the pieces to see that the piece is one of them. A model of 0.4 that does not ask for the proposal has none of it. The reference implementation builds against this text (open questions, 124).

## 14. The decisions

The steward decided question 124 on 31 October 2026, as recommended, (A) on every point (the openEik.org thread: "allt ja enligt din rekommendation", and for P8 to P10 "ok kör på dina rekommendationer"), and on 5 November 2026 that the text and the tools are written now, from the decisions: "Skriv nu". The sections that write each point:

| Point | Decided | Where |
|---|---|---|
| P1 | edge pieces, boards and the garage door together | sections 4, 5 and 4.5 |
| P2 | shapes built in; a maker's range a type library, its names data | sections 2 and 11 |
| P3 | derived on every compile; a single piece adoptable as an element that names its host and its piece, the layout fitting round it | sections 3 and 8 |
| P4 | in a garage door's opening no element, a notch and a threshold angle | section 4.5, rules 2 and 4 |
| P5 | IfcSlab BASESLAB, IfcFooting STRIP_FOOTING, each piece an IfcBuildingElementPart under its host | section 10 |
| P6, P7 | the order of the work: changed on 5 November 2026, the text first ("Skriv nu") | this part's status |
| P8 | a maker's range in the reference implementation, as data; no product named here | section 11 |
| P9 | an edge section of insulation parts, its concrete derived; a slab below its edge's top | section 2.3 |
| P10 | what an edge type's pieces do in an opening, P4's way by default, or through, cut down, with stop-ends | section 4.5 |

On 5 November 2026 the steward accepted the editors' detail choices, in the openEik.org thread. He had first answered them "kör på enligt dina val"; asked each question in turn, he chose the recommended option to each, and these are his decisions:

| Detail | The steward decided | Where |
|---|---|---|
| Outer corners | a corner piece where it fits, otherwise mitred straights | section 4.2, rules 1, 2 and 5 |
| Inner corners | mitred straights (`innerCorner` `"straights"`, the default) | section 4.2, rule 4 |
| The closing piece | at the end of its run, with no least cut (`cut` `"end"` and `minCut` 0, the defaults) | section 4.3, rules 3 and 4 |
| Lengths | measured along the section's outer face | section 4.1, rule 3 |
| Boards | a half bond, from the corner of the region's box, narrow outer rows centred | section 5.2, rules 2 and 4; 5.3, rule 1 |
| A garage door | a notch, a threshold angle and stop-ends: a threshold angle where the pieces stop, stop-ends where they run through | section 4.5 |

The editors decided the other details on 5 November 2026, where the plan left them open (question 126):

| Detail | The editors decided |
|---|---|
| Where it lives | a Part of its own for 0.5, as Part XIX; its members are Part II's and its rules Part IV's class-A rules in a later version (section 1.1) |
| A rule's members | `pieces` on a slab edge type and on a layer, one name for both kinds (section 2); defaults beside the steward's: cuttable, `opening` `"none"`, direction 0 |
| A section of parts | a member of its own, `edgeParts`, in place of `edgeProfile`, so that a reader of 0.4 builds the element as a rectangle and keeps the member; parts as plain polygons, without arcs; the cast region as section 2.3, rule 5 derives it, the host's own structure taken out of it, and of the host's structure's material |
| Joints | square to the edge; a remainder of 1 mm or less taken up by the joints (section 4.1, rule 1; 4.3, rule 2) |
| Where a corner piece fits | both elements at the corner of one type and mitred, the outline turning through its angle, 90° by default; one piece of the element after the corner, or a pair (section 4.2) |
| Runs | laid in the edge's direction from each stretch's start; where a type gives a least cut, two cuts of (c + ℓ) / 2 for a closing piece under it; a shift on the element; pieces that may not be cut leave their remainder unlaid (section 4.3) |
| Ids | `<element>:a:<k>`, `<element>:o<i>:<k>` after an opening and `<adopted piece>:<k>` after an adopted piece, k from 1; corner pieces `:a:0` and a pair's end leg `:b:0`; boards `<element>:board:<layer>:<row>:<cell>`; a body names its piece by its id less its element's and the colon, as Part IV, 1.1.1's `piece` tag names a stair's (sections 4.4 and 5.4) |
| Openings' details | a notch is an opening; the threshold angle at the outer face along it; stop-ends inside it at each end; a notch may not reach a corner's legs (section 4.5) |
| Boards' details | the region where the layer's whole thickness lies; a point the element gives for the origin, with an offset per layer; no least cut along a row (section 5) |
| Marks | the rule's start, or its type's id; fixed marks for whole pieces, corners and fittings; cut pieces numbered over the model, the longest or largest first (section 6) |
| Quantities | counts and a cast volume per element; a schedule per rule and mark with stock and offcuts; thresholds in stock lengths per notch (section 7) |
| Adopted pieces | an edge piece a slab edge element over its stretch, a board an element of its host's category; the run after it named by its piece id; owned as its host (section 8) |
| Commands | one, `piece.adopt`; releasing is `element.delete` (section 9) |
| IFC | a slab on ground is a slab that hosts a slab edge element of a type with pieces; pieces INSULATION; fittings IfcDiscreteAccessory; the maker's data in Pset_ManufacturerTypeInformation (section 10) |

Asked the same day which of the four items the editors had left for a later step to take now, the steward chose all four. They are written in this part with their tools and cases: stronger boards under load-bearing walls (section 5.6), holes for pipes and ducts (sections 4.7 and 5.7), a threshold's fall (section 4.5, rule 8), and piece plans on drawing sheets (section 6.1, with Part XIV, 6.12, rule 21 and 9.7, rule 3). Their defaults were put to him the same day. He chose a zone's width by a 45° load spread down through the insulation ("Fotavtryck + 45° lastspridning") over the editors' 300 mm, and the recommended option to each of the others, and these are his decisions:

| Item | The steward decided | Where |
|---|---|---|
| A zone: its width | each footprint grown by a 45° spread down through the layers below the structure, unless the rule gives `width` | 5.6, rule 3 |
| A hole: its size | the run's outer section and 10 mm all round, `clearance` on the rule | 4.7, rule 1; 5.7 |
| The fall | 20 ‰, 1 in 50, outward | 4.5, rule 8 |
| Piece plans | a view setting, `display.pieces` | 6.1 |

The editors chose the other details of the four items:

| Item | The editors' choice | Where |
|---|---|---|
| A zone: what bears | the walls of the element's level whose `structural` is `true` or that a truss layout's `bearingWallIds` names, and its columns | 5.6, rule 1 |
| A zone: on the rule | `zone`, `{material, width?, mark?}`, on the layer's rule: a second grade, by its material | 2.2, rule 4 |
| A zone: its edge | the layer's grid kept, and the zone's outline cutting each board it crosses; a board in it named `…:z` | 5.6, rules 4 and 5 |
| A zone: its count | marks of its own, `<mark>-Z`; a schedule of its own, of its grade; the element's volume `zone` | 6, rule 8; 7 |
| A hole: which runs | pipes and ducts, the hole section their outer section and 10 mm all round, `clearance` on the rule | 4.7, rule 1; 5.7 |
| A hole in an edge | where the axis crosses the section's outer face; cut through the section square to the edge, the hull at the way through's ends; none in the cast region | 4.7, rules 2 to 4 |
| A hole in boards | where the axis crosses the layer's top or underside; cut square through the layer | 5.7 |
| A hole: the piece | its id and kind kept; the cut `penetration`; marked holed, `-H<n>`; an adopted piece not cut | 4.7, rule 5; 6, rules 1, 2 and 7 |
| The fall | 20 ‰, 1 in 50, outward; the floor through the notch's depth at the outer face; per opening by a notch's `fall`, per type by `opening.fall` | 4.5, rule 8; 2.4, rule 4 |
| Piece plans | a view setting, `display.pieces`, not a detail item; each piece a group named by its id `<element>:<piece>`, its mark in it; the read set its element and its element's type | 6.1 |

Left for a later step: a least cut along a row of boards, a groove for a run laid in insulation, and the other building parts of section 1.
