> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/ladybug-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/ladybug-primer/components/4_extra/filter_by_normal.md).

# Filter by Normal

![](/files/OkrZyLulDKtBaFXwQh4W)

![](/files/EodhR0TtaSFLClTwHjx8) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src//LB%20Filter%20by%20Normal.py)

Filter or select faces of geometry based on their orientation.

### Inputs

* **north**

A number between -360 and 360 for the counterclockwise difference between the North and the positive Y-axis in degrees. 90 is West and 270 is East. This can also be Vector for the direction to North. (Default: 0)

* **geometry \[Required]**

Rhino Breps and/or Rhino Meshes which will be broken down into individual planar faces and filtered based on the direction they face.

* **orientation \[Required]**

Text for the direction that the geometry is facing. This can also be a number between 0 and 360 for the azimuth (clockwise horizontal degrees from North) that the geometry should face. Choose from the following:

```
* N = North

* NE = Northeast

* E = East

* SE = Southeast

* S = South

* SW = Southwest

* W = West

* NW = Northwest

* Up = Upwards

* Down = Downwards
```

* **up\_angle**

A number in degrees for the maximum declination angle from the positive Z Axis that is considerd up. This should be between 0 and 90 for the results to be practical. (Default: 30).

* **down\_angle**

A number in degrees for the maximum angle difference from the newative Z Axis that is considerd down. This should be between 0 and 90 for the results to be practical. (Default: 30).

* **horiz\_angle**

Angle in degrees for the horizontal deviation from \_orientation that is still considered to face that orientation. This should be between 0 and 90 for the results to be practical. Note that this input has no effect when the input orientation is "Up" or "Down". (Default: 23).

### Outputs

* **report**

...

* **sel\_geo**

Selected faces of the input geometry that are facing the direction corresponding to the input criteria.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/ladybug-primer/components/4_extra/filter_by_normal.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.
