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

# PolylinePrimitive

> An open path through a list of points.

## Import

```typescript theme={null}
import { PolylinePrimitive } from '@opengeometry/floorkit';
```

**Inheritance:** `extends Polyline implements IPrimitive`

## Constructor

```typescript theme={null}
constructor(polylineConfig?: Partial<PolylineOptions>);
```

<ParamField path="polylineConfig.ogid" type="string" />

<ParamField path="polylineConfig.points" type="number[][]" />

<ParamField path="polylineConfig.color" type="number" />

## Properties

<ResponseField name="ogType" type="string" />

<ResponseField name="subNodes" type="Map<string, THREE.Object3D>" />

<ResponseField name="selected" type="boolean" />

<ResponseField name="edit" type="boolean" />

<ResponseField name="propertySet" type="PolylineOptions" />

<ResponseField name="lineColor" type="number" />

## Methods

### setConfig

```typescript theme={null}
setConfig(options: Parameters<Polyline['setConfig']>[0]): void;
```

### setOPConfig

```typescript theme={null}
setOPConfig(config: Partial<PolylineOptions>): void;
```

### getOPConfig

```typescript theme={null}
getOPConfig(): PolylineOptions;
```

### setOPGeometry

```typescript theme={null}
setOPGeometry(): void;
```

### setOPMaterial

```typescript theme={null}
setOPMaterial(): void;
```

### attachPoint

```typescript theme={null}
attachPoint(point: Array<number>): void;
```

### dispose

```typescript theme={null}
dispose(): void;
```

Release render resources and the kernel path when a compiled object is replaced.

## Types

### PolylineOptions

```typescript theme={null}
interface PolylineOptions {
  ogid?: string;
  points: Array<Array<number>>;
  color: number;
}
```

## Related

* [`IPrimitive`](/floorkit/api/primitives/line-primitive#iprimitive)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.