> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/dragonfly-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/dragonfly-primer/components/0_create/deconstruct_roof.md).

# Deconstruct Roof

![](/files/ZKFamyGH8lpwSlvFAmXW)

![](/files/Lvq2hhts0PFaiDBrO9iX) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20Deconstruct%20Roof.py)

Deconstruct any Dragonfly Story, Building or Model to get the Roof geometry.

This is useful for checking the roof geometry assigned to sotries and possbily editing it so that it can be re-assigned with "DF Apply Roof" component.

### Inputs

* **df\_obj \[Required]**

A Dragonfly Model, Building, Story for which the roof geometry will be extracted.

### Outputs

* **stories**

The unique Story objects that make up the input \_df\_obj. This is typically a data tree with branches coordinated with the roof\_geo below.

* **roof\_geo**

A list of Breps representing the geometry of the Roof. This is often a data tree with one branch for each story, which is coordinated with the stories above.
