Points in Python

This guide provides an overview of the RhinoScriptSytntax Point Geometry in Python.

Points

In Python, 3-D points are represented as zero-based lists that contain three numbers. These three number represent to the X, Y and Z coordinate values of the point.

A 3-D point can be constructed in a number of different ways. For example:

point1 = [1.0, 2.0, 3.0]

A point list can also be constructed one element at a time:

point2 = []
point2.append(1.0)
point2.append(2.0)
point2.append(5.0)

Like 3-D points, Python represents a single 2-D point as a zero-based list of numbers. The difference being that 2-D points contain only X and Y coordinate values.

Rhinoscriptsyntax contains a number of methods to manipulate points. See Points and Vectors for details.