Architecture
zRoof
Parametric roof with dormers
zRoof builds a roof from one planar outline curve. It supports four basic styles, Gable, Hip, Gambrel and Mansard, recognizes L-shaped, T-shaped and cross-shaped plans for multi-wing hip roofs, and lets you add dormers right in the dialog.
Good for:
- A building outline already drawn in plan, when you need a roof quickly.
- Adding dormers to a roof (gable, hip or shed dormers).
- L, T and cross-shaped plans that should become a hip roof automatically.
Not for:
- Irregular or non-axis-aligned outlines. The tool rejects them as Irregular and builds nothing.
Quick start
- Run
zRoof. - Pick a closed planar polyline as the roof outline (see Good to know below).
- The longest edge is used as the ridge reference automatically. You do not choose it.
- The dialog opens with a live preview in the viewport. The SECTION drawing sits on top, with two tabs below it: ROOF (the LAYOUT and DIMENSION cards) and DORMER. Adjust the roof on ROOF, and add dormers on DORMER if you need them.
- Bake creates the real geometry. Cancel discards the preview. The Bake button is never grayed out: if the current settings make no roof, the window stays open and the warning card beside it shows a red “Nothing to bake” line with the reasons below it.
- To change a baked roof, select any part of it and run
zRoofEdit. While the Edit window is open, the outline is drawn on top of the preview.
You can also start the tool from a preset in the Architecture tab of zAssetLibrary: the same picks run, and the window opens filled with the preset.
SECTION
A live drawing of the roof, cut across the ridge at the middle of the footprint, taken from the preview roof itself. The card title shows the ridge height and the span.
- Double-click a number on the drawing (Pitch, Height, Overhang, Thickness, Lower Pitch, Upper Pitch, Break Inset) to type a new value. It goes into its field and the preview follows.
- On the ROOF tab, the Global / Detail toggle on the card title switches between the whole cut and the left eave at true scale (where Thickness is drawn). The view changes only when you click the toggle.
- End Overhang is not drawn in the section. Dormers are not shown in the section either: place them on the roof in the viewport.
ROOF > LAYOUT
- Lengths follow the Rhino document unit: a bare number means the document unit, and a unit typed after it always works. Each system keeps its own values.
- Style: the choices depend on your outline. Hover its name to see a drawing of each shape.
- Rectangle: Gable, Hip, Gambrel (barn roof) and Mansard.
- L, T and cross-shaped plans: Hip only (shown as L-Shape Hip, T-Shape Hip or Cross-Shape Hip). The roof comes out the same whichever edge is used as the reference, and a wing wider than the one it joins still gets a clean hip roof: when the usual wing layout does not cover the plan, every slope is built at the same pitch over the whole outline.
- Height Mode: decides whether the ridge height comes from the slope or is set directly. Hover its name to see a drawing of both.
- Pitch: the ridge height follows the Pitch value.
- Fixed: you type the ridge height, and the slope is no longer used. This row is hidden for Mansard, which has no single ridge height (the lower and upper slopes control it).
- Flip Ridge (a switch): Gable and Gambrel only. Turns the automatically chosen longest edge to the other direction, which rotates the ridge by 90 degrees.
- Force Pyramid (a switch): rectangle outlines with Hip only. When the outline is not square, forces a single pyramid peak instead of a hip roof with a ridge. Hover its name to see a drawing of Off and On.
- Match Ridge Height (a switch): T and cross-shaped plans with Hip only. Controls whether the ridge of a secondary wing follows the ridge height of the main wing.
- On: the secondary ridge always equals the main ridge height.
- Off: the secondary wing uses its own pitch, and the valley at the junction stays parallel to the true hip line.
ROOF > DIMENSION
For Gambrel and Mansard, the style’s own rows (see below) come first in this card, followed by the rows here.
- Pitch: the general slope for Gable and Hip. Mansard and Gambrel do not use it and use Lower Pitch and Upper Pitch instead. Typical house roofs are about 15 to 45 degrees.
- Height (only when Height Mode is Fixed): the ridge height. Not used by Mansard.
- Overhang: the horizontal overhang at the eaves.
- End Overhang: Gable and Gambrel only. The overhang at the gable ends. Hip, Mansard and multi-wing plans have no gable ends, so the row is removed.
- Thickness: the roof slab thickness. At the default of 0 the roof is a zero-thickness surface, which previews fastest. Above 0, the roof is thickened downward along the surface normal. Gable end caps always stay zero thickness. The viewport preview always shows the thin zero-thickness panels, not the thickened shape (a speed optimization). The SECTION drawing shows the thickness, and Bake gives the real thickness.
Gambrel rows
- Break Fraction: where along the half span the slope changes.
- Lower Pitch: the steep lower slope.
- Upper Pitch: the shallow upper slope. It is grayed out and ignored when Height Mode is Fixed, because the height is then set directly.
Mansard rows
- Break Inset: how far the upper part is pulled in from the outline.
- Lower Pitch: the steep lower slope.
- Upper Pitch: the shallow upper slope. Set it to 0 degrees for a flat top.
DORMER
A table with an editor below it. Each row is a dormer. Click + Add Dormer under the list, then click on the previewed roof to place one. The editor is always shown. Tick one or more rows and the editor shows their parameters. With several rows ticked, a change applies to all of them. With no row ticked, the editor holds the values the next dormer starts with. The length fields show their unit (in or mm).
- Style: the roof form of the dormer.
- Gable: a ridge, two slopes and a gable end wall.
- Hip: a hipped front slope, no gable.
- Shed: a single sloping roof with its own pitch.
- Width: the dormer width, eave to eave.
- Height: the height of the front wall, from the main roof up to the dormer’s own eave.
- Offset: how far to move the dormer up the slope from the point you picked.
- Pitch (Shed only): the dormer’s own slope, which must be shallower than the main roof. Gable and Hip dormers do not show it, because their ridge follows the main roof pitch.
How the settings work together
- Height Mode shows either the Pitch row or the Height row, never both.
- For Gambrel and Mansard the general Pitch does not apply. Mansard hides the Height Mode row altogether. Both use their own Lower Pitch and Upper Pitch rows.
- The Style choices follow the outline: all four styles for a rectangle, Hip only for L, T and cross-shaped plans. An irregular outline empties and disables the Style list, and no roof can be made.
- Flip Ridge and End Overhang appear only for Gable and Gambrel. Force Pyramid appears only for a rectangle with Hip. Match Ridge Height appears only for T or cross-shaped plans with Hip.
- Ticking dormer rows loads their values into the editor. Changes in the editor are written to all ticked rows.
- Switching a dormer to Shed adds a Pitch row. Switching back removes it.
Good to know
- The outline must be exactly a rectangle, L, T or cross shape, not any polygon. A rectangle has 4 vertices with near right angles, an L has exactly 6 vertices with exactly one 270 degree corner, a T has exactly 8 vertices and a cross has exactly 12. Anything else is Irregular: the Style list is empty and disabled and no roof is made. If the Style list is empty after picking, your outline is not one of these four shapes.
- The outline must be a closed planar polyline. An outline with arc fillets cannot be used directly.
- Dormers are placed on the live preview. You cannot add one until the current settings produce a valid preview roof.
- A dormer outside the roof or overlapping another dormer only gives a warning on the warning card. It does not stop Bake, but the geometry where dormers overlap may not be right.
- If a setting change removes the roof face a dormer sits on, that dormer is skipped silently, but its settings are kept. Each refresh matches every dormer to the nearest roof face. If you change Style, Pitch or Overhang so that the host face disappears or moves too far, the dormer is not shown for now and a note appears on the warning card. Change the roof settings back and it returns.
- Toggling Flip Ridge clears all dormers. Flipping rotates the roof orientation by 90 degrees, so the dormer positions no longer match any roof face. They are removed from the list and you have to add them again with + Add Dormer.
- There is no value panel in the viewport. A small red square appears at the top right only when there is a warning (for example a missing dormer host), without the warning text. The text is on the warning card beside the window.
- Bake does not close the window? The current settings make no roof. Read the red “Nothing to bake” line and the reasons on the warning card, change the settings, and press Bake again.
- Deleting the outline curve during creation interrupts the preview and you are asked to undo or run the command again.
- Ungrouping a baked roof does not stop Edit. The roof parts are put in one Rhino group, but every part keeps its own identity, so Edit still finds the whole roof.
- Edit follows a move or a rotation, and a copy is edited on its own. Every baked part remembers where it was built, so Edit rebuilds the roof where it is now, from any part that is still intact. No reference outline is baked. A scale or a tilt is not kept: the roof is rebuilt level at its true size.