# Cap

## <img src="/files/U4zk4wlrQgPTtT0obcoK" alt="" data-size="line"> Cap <a href="#profiles" id="profiles"></a>

The Cap command fills planar holes in objects with planar faces.

It is caplable of capping surfaces, Meshes and SubDs.

<div align="left"><figure><img src="/files/hdkbpIuu5sUB2qmVYFF7" alt=""><figcaption></figcaption></figure></div>

#### Command-line options (Mesh/SubD only)

-DeleteInput: Specify if the input object will be deleted.

-Crease

* Yes: Do not weld the vertices along the cap boundary.

<div align="left"><figure><img src="/files/gpTqXgJ1t3CqQvxHcA3l" alt=""><figcaption></figcaption></figure></div>

* No: Welds the vertices along the cap boundary.

<div align="left"><figure><img src="/files/AduglQDRu07dKxNhnsGa" alt=""><figcaption></figcaption></figure></div>

* Triangles
  * Yes: Fills a planar opening in a SubD or mesh with triangle faces.

<div align="left"><figure><img src="/files/utFl3mf75noVZFsEYytX" alt=""><figcaption></figcaption></figure></div>

* No: Fills a planar opening in a SubD with a single face, or in a mesh with an n-gon.

<div align="left"><figure><img src="/files/D5gZKPpzfTVj2Kk52Cma" alt=""><figcaption></figcaption></figure></div>

#### Aditional Notes

Caps will always be made up of triangles when:

* A SubD or mesh cap has a hole (an inner boundary).

<div align="left"><img src="https://docs.mcneel.com/rhino/8/help/en-us/image/topic_illustrations/cap_hole.png" alt=""></div>

* Any part of the outer boundary of a SubD cap is not convex.

<div align="left"><img src="https://docs.mcneel.com/rhino/8/help/en-us/image/topic_illustrations/cap_subd_convex.gif" alt=""></div>

You can use the MergeFaces command to combine the triangles into a single face as needed.

For more information, please refer to the [Rhino documentation](https://docs.mcneel.com/rhino/8/help/en-us/commands/mesh.htm).


---

# 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.rhinoartisan.com/commands/solid/cap.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.
