Skip to main content
A roof starts from the outline of the walls below it. You select the roof type and the pitch, and Floorkit makes the roof planes.

Before you start

You have a session from Start a building.

Write the roof

This gable roof sits on the room from Draw a wall. Its outline is the outer face of the walls, 0.1 metres outside the wall path. Its eave is 3 metres above the storey elevation, at the top of the walls.

Add it to the storey

A roof is an entry in the roofs list of its storey.
The add-element command adds the roof to the list, and the session builds it. You keep the session and its undo history. The command rejects an id that the list has.

Roof types

In a JSON file, write the type as text: "GABLE".

Rules

  • pitch is in degrees. overhang and thickness are in metres.
  • baseOffset is the distance from the storey elevation to the eave.
  • overhang moves the roof edge outward from the outline.
  • A pitched roof cannot have holes.

Next

Add a stair

Connect two storeys.

Roof API

See each option of a roof.
Last modified on October 11, 2026