# 2D Polyline

A 2D Polyline is an annotation tool used to draw a series of connected straight-line segments on a 2D image. It consists of multiple points (or nodes) that define the shape, allowing you to mark irregular or elongated objects with precision, such as road lanes, boundaries, or paths.

***

## Create Polyline 2D

1. Click the '+' icon next to the class you want to annotate from the class list.
2. Select 'Polyline 2D' from the drawing tool list.
3. The cursor pointer shows a yellow circle marker while hovering over the image.
4. `Left-click` to place the first point and start the polyline. Move your mouse to the next desired location, and a line extending from the initial point will dynamically follow the cursor.
5. Continue left-clicking to create additional vertices/points along the path.
6. `Right-click` to place the final vertex and end the polyline.
7. Enter the annotation details.
8. The saved instance will appear in the class list with a 2D icon next to the instance name, indicating it was created in the image sensor.

***

### Modify Polyline 2D

To modify an existing polyline:

* **Move a vertex:** Select a vertex and drag it to a new location.
* **Remove a vertex:** Drag the vertex to its adjacent vertex to delete it.
* **Add a vertex:** Hover over a segment between two vertices. The segment turns yellow and a pink point appears, showing where the new vertex will be created. `Left-click` to add the vertex.
