points_set()

Sets the value of a specified axis for a stored point in the points list.

Syntax

points_set(index, axis, value)

Parameters

Parameter Type Description Comment
index Number Index of the point in the list Starts from 0
axis Number Axis index (0-8)
value Number New value to set for the axis

Return Value

Examples

Set the X coordinate (axis 0) of the first stored point to 10.5

points_set(0, 0, 10.5);

Set the Z coordinate (axis 2) of the third stored point to -5.2

points_set(2, 2, -5.2);

See also

points_count
points_clear
points_add
points_get
points_set
points_delete
points_load
points_save