# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/dragonfly-primer/components/0_create/deconstruct_roof.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
