Add a new point to the end of the part by specifying the points x,y coordinates. A new line segment is added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point updates this line segment to gain a distinct end point. Adding subsequent points adds new line segments.

200.1.0

#### Parameters

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

fun addPoint(x: Double, y: Double, z: Double)

Add a new point to the end of the part by specifying the points x,y,z coordinates. A new line segment is added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point updates this line segment to gain a distinct end point. Adding subsequent points adds new line segments.

200.1.0

#### Parameters

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

z

The z-coordinate of the new point.

Add a new point to the end of the part. A new line segment is added to connect the new point to the previous. The points in the part are the start and end points of segments. A new line segment is added to connect the new point to the previous point. If this is the first point in an empty segment, a single closed segment is added using the same start and end point. Adding a second point updates this line segment to gain a distinct end point. Adding subsequent points adds new line segments.

200.1.0

#### Parameters

point

fun addPoint(pointIndex: Int, x: Double, y: Double)

Inserts a point specified by its x,y coordinates into the part at the specified point index. Line segments are added to connect the point to adjacent segments. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection. The points in the part are the start and end points of segments. An existing segment connection the point before or after the point index is removed. Inserting a new point inserts new line segments connecting the adjacent points.

200.1.0

#### Parameters

pointIndex

Zero-based index of the point.

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

#### Throws

if pointIndex is out of range.

fun addPoint(pointIndex: Int, x: Double, y: Double, z: Double)

Inserts a point specified by its x,y,z coordinate into the part at the specified point index. Line segments are added to connect the point to adjacent segments. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection. The points in the part are the start and end points of segments. An existing segment connection the point before or after the point index is removed. Inserting a new point inserts new line segments connecting the adjacent points.

200.1.0

#### Parameters

pointIndex

Zero-based index of the point.

x

The x-coordinate of the new point.

y

The y-coordinate of the new point.

z

The z-coordinate of the new point.

#### Throws

if pointIndex is out of range.

Inserts a point into the part at the specified point index. Line segments are added to connect the point to adjacent segments. The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection. The points in the part are the start and end points of segments. An existing segment connection the point before or after the point index is removed. Inserting a new point inserts new line segments connecting the adjacent points.

200.1.0

#### Parameters

pointIndex

Zero-based index of the point.

point

The point to insert.

#### Throws

if pointIndex is out of range.