> For the complete documentation index, see [llms.txt](https://interopxyz.gitbook.io/curve-plus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interopxyz.gitbook.io/curve-plus/components/utilities/cull-segments.md).

# Cull Segments

Cull linear segments from a polyline by indices

## Description

Cull linear segments from a polyline by indices

{% tabs %}
{% tab title="Preview" %}
![](https://970693072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdsbfCRcDsSN9QLbjbulF%2Fuploads%2FB8f41gbAcPEd4cTp16nK%2FComponent-CullSegments.png?alt=media\&token=88ff01dc-e8dc-41d6-aefe-185d1c961237)
{% endtab %}

{% tab title="Location" %}
**Name** | Cull Segments

**Nickname** | CullSegs

**Tab** | Curve

**Panel** | Util

**Division** | 1
{% endtab %}

{% tab title="Inputs" %}
**P** | **Polyline** (*Curve*) | The source polyline

**I** | **Indices** (*Integer*) | The indices of the linear segments to remove.

**C** | **Collapse** (*Bool*) | If true, a single polyline will be returned with the segments removed. If false, a list of polylines will be returned that are broken at the specified indices.
{% endtab %}

{% tab title="Outputs" %}
**P** | **Polylines** (*Curve*) | A list of polylines
{% endtab %}

{% tab title="Mode" %}
*none*
{% endtab %}
{% endtabs %}

## Usage
