> 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/3_analyzegeometry/view_from_sun.md).

# View From Sun

![](/files/-MihilZhb7x60MDAAGAY)

![](/files/-Mihil3fbvy8bA4SUWiz) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src//LB%20View%20From%20Sun.py)

Open a new viewport in Rhino that shows the parallel-projected view from the sun.

This is useful for understanding what parts of Rhino geometry are shaded at a particular hour of the day.

### Inputs

* **vector \[Required]**

A sun vector from which the the Rhino view will be generated. Use the "LB SunPath" component to generate sun vectors.

* **center\_pt**

The target point of the camera for the Rhino view that will be generated. This point should be close to the Rhino geometry that you are interested in viewing from the sun. If no point is provided, the Rhino origin will be used (0, 0, 0).

* **width**

An optional interger for the width (in pixels) of the Rhino viewport that will be generated.

* **height**

An optional interger for the height (in pixels) of the Rhino viewport that will be generated.

* **mode**

An optional text input for the display mode of the Rhino viewport that will be generated. For example: Wireframe, Shaded, Rendered, etc.

### Outputs

* **report**

The name of the viewport that was opened.


---

# 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/3_analyzegeometry/view_from_sun.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.
