Before you start
You have a session from Start a building. You know how to add a floor slab.Write the slab
This page uses its own slab: a square of 4 metres by 4 metres, with the idround-slab. Its area is 16 square metres.
Round one corner
Theset-corner-radius command takes the list of the element, the id of the element, the ring ('outer' or the index of a hole), the corners and a radius in metres. The corners are indices of the points of the ring. One command is one undo step.
(1 - π/4) × r², which is 0.2146 square metres, from the corner.
Round all four corners
Give the four indices in one command.Make the corners sharp again
A radius ofnull makes the corners sharp. The slab is the square again.
Read the exact area
storeyFloorAreas measures the slabs of a storey and counts each arc exactly. The walls do not count when the storey has a slab.
4 × 0.2146 = 0.8584 square metres.
What is refused
The model has the radius incornerRadii.outerRing, with one entry for each corner of profile and null for a sharp corner. cornerRadii.holes[i] does the same for hole i. The kernel refuses a radius in two cases:
- The radius does not fit. The two corners at the ends of an edge share that edge. The command is refused with
corner-radius-too-big, and the message names the corner and the largest radius that fits. On a 4 metre edge, two corners of 2 metres give a half-round end, and two corners of more than 2 metres do not fit. - The corner is beside an arc edge. A corner next to an edge from
arcstakes no radius, and the command is refused withcorner-radius-arc-edge.
Round a corner in the plan editor
In the reshape mode of the plan, each slab corner has a round-corner handle on its bisector.- Drag the handle to set a radius. The radius is limited to the largest that fits, and the plan shows it in millimetres.
- Type a number in millimetres and press Enter for an exact value.
- Drag the handle back onto the corner to make it sharp.
Next
Add a floor slab
Outline, thickness, edge profile and curved edges.
Slab API
See each option of a slab.