Flattens an array of 3-D points into a one-dimensional list of real numbers. For example, if you had an array containing three 3-D points, this method would return a one-dimensional array containing nine real numbers.
rhinoscriptsyntax.SimplifyArray (points)
rhinoscript.utility.SimplifyArray (points)
points |
Required. List or tuple. An array of 3-D points. |
List |
A one-dimensional list containing real numbers, if successful. |
None |
If not successful or on error. |
import rhinoscriptsyntax as rs
points = rs.GetPoints()
if points:
numbers = rs.SimplifyArray(points)
for n in numbers: print n