> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Collapse Vertices

<CardGroup cols={2}>
  <Card title="Graph, Scalar" href="#graph-scalar" />

  <Card title="Graph, Scalar, 1.1.0" href="#graph-scalar-110" />

  <Card title="Lattice, Scalar" href="#lattice-scalar" />

  <Card title="Lattice, Scalar, 1.1.0" href="#lattice-scalar-110" />

  <Card title="Mesh, Scalar, 1.1.0" href="#mesh-scalar-110" />
</CardGroup>

***

## About this Block

**What it does:** Collapses vertices of a Lattice that are within a given distance of each other.

**Common uses:**

* Simplifying Lattices.

**Tips:**

* A Distance Threshold that is too high results in an empty Lattice.
* Open up the block's Properties Panel to view the beam, implicit, and thick graph properties.
  * These properties are populated based on the type of Unit Cell you use. An error sign with a tooltip appears next to the property if it is empty.

![Collapse Lattice Vertices](https://storage.googleapis.com/files-learn/static/ExtendedBlockDocs/collapse.png)

***

<h2 id="graph-scalar">
  Graph, Scalar
</h2>

Collapses and merges the vertices of a Graph that are within a given distance of each other.

### Inputs

| Name      | Type                                                   | Description                                                                     |
| --------- | ------------------------------------------------------ | ------------------------------------------------------------------------------- |
| Graph     | [Graph](../../../../block-documentation/types/graph)   | Graph to collapse the vertices of.                                              |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar) | Vertices within this distance threshold will be collapsed into a single vertex. |

### Outputs

| Type                                                 |
| ---------------------------------------------------- |
| [Graph](../../../../block-documentation/types/graph) |

***

<h2 id="graph-scalar-110">
  Graph, Scalar, 1.1.0
</h2>

Collapses and merges the vertices of a Graph that are within a given distance of each other.

### Inputs

| Name      | Type                                                   | Description                                                                     |
| --------- | ------------------------------------------------------ | ------------------------------------------------------------------------------- |
| Graph     | [Graph](../../../../block-documentation/types/graph)   | Graph to collapse the vertices of.                                              |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar) | Vertices within this distance threshold will be collapsed into a single vertex. |

### Outputs

| Type                                                 |
| ---------------------------------------------------- |
| [Graph](../../../../block-documentation/types/graph) |

***

<h2 id="lattice-scalar">
  Lattice, Scalar
</h2>

Collapses and merges the vertices of a Lattice that are within a given distance of each other.

### Inputs

| Name      | Type                                                     | Description                                                                     |
| --------- | -------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Lattice   | [Lattice](../../../../block-documentation/types/lattice) | Lattice to collapse the vertices of.                                            |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar)   | Vertices within this distance threshold will be collapsed into a single vertex. |

### Outputs

| Type                                                     |
| -------------------------------------------------------- |
| [Lattice](../../../../block-documentation/types/lattice) |

## About this Block

**What it does:** Collapses vertices of a Lattice that are within a given distance of each other.

**Common uses:**

* Simplifying Lattices.

**Tips:**

* A Distance Threshold that is too high results in an empty Lattice.
* Open up the block's Properties Panel to view the beam, implicit, and thick graph properties.
  * These properties are populated based on the type of Unit Cell you use. An error sign with a tooltip appears next to the property if it is empty.

![Collapse Lattice Vertices](https://storage.googleapis.com/files-learn/static/ExtendedBlockDocs/collapse.png)

***

<h2 id="lattice-scalar-110">
  Lattice, Scalar, 1.1.0
</h2>

Collapses and merges the vertices of a Lattice that are within a given distance of each other.

### Inputs

| Name      | Type                                                     | Description                                                                     |
| --------- | -------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Lattice   | [Lattice](../../../../block-documentation/types/lattice) | Lattice to collapse the vertices of.                                            |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar)   | Vertices within this distance threshold will be collapsed into a single vertex. |

### Outputs

| Type                                                     |
| -------------------------------------------------------- |
| [Lattice](../../../../block-documentation/types/lattice) |

***

<h2 id="mesh-scalar-110">
  Mesh, Scalar, 1.1.0
</h2>

Collapses and merges the vertices of a surface Mesh that are within a given distance of each other.

### Inputs

| Name      | Type                                                   | Description                                                                     |
| --------- | ------------------------------------------------------ | ------------------------------------------------------------------------------- |
| Mesh      | [Mesh](../../../../block-documentation/types/mesh)     | Mesh to collapse the vertices of.                                               |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar) | Vertices within this distance threshold will be collapsed into a single vertex. |

### Outputs

| Type                                               |
| -------------------------------------------------- |
| [Mesh](../../../../block-documentation/types/mesh) |
