# Generate Point Grid

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-36a32231150a868081308aa4ae1bf34c3648108a%2FGenerate_Point_Grid.png?alt=media)

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-2cbafc68a0216ce5b90d963cb58f302adb9fef7a%2FGenerate_Point_Grid.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src/LB%20Generate%20Point%20Grid.py)

Genrate a mesh with corresponding test points from a Rhino Brep (or Mesh).

The resulting mesh will be in a format that the "LB Spatial Heatmap" component will accept.

### Inputs

* **geometry \[Required]**

Brep or Mesh from which to generate the points and grid.

* **grid\_size \[Required]**

Number for the size of the test grid.

* **offset\_dist**

Number for the distance to move points from the surfaces of the input \_geometry. Typically, this should be a small positive number to ensure points are not blocked by the mesh. (Default: 0).

* **quad\_only**

Boolean to note whether meshing should be done using Rhino's defaults (False), which fills the entire \_geometry to the edges with both quad and tringulated faces, or a mesh with only quad faces should be generated. FOR ADVANCED USERS: This input can also be a vector object that will be used to set the orientation of the quad-only grid. Note that, if a vector is input here that is not aligned with the plane of the input \_geometry, an error will be raised.

### Outputs

* **points**

Test points at the center of each mesh face.

* **vectors**

Vectors for the normal direction at each of the points.

* **face\_areas**

Area of each mesh face.

* **mesh**

Analysis mesh that can be passed to the "LB Spatial Heatmap" component.


---

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