Quantcast
Channel: Rhino for Windows - McNeel Forum
Viewing all articles
Browse latest Browse all 19547

Return values for each point in the list

$
0
0

@coni wrote:

Hi, I have this code, which returns the coordinates for only one 3dpoint, although I selected more points. How can I get the coordinates for each point that I select?

import rhinoscriptsyntax as rs

points = rs.GetObjects("referentiaza punctele",1)

for pt in points:
ptCoord = rs.PointCoordinates(pt)
x = ptCoord[0]
y = ptCoord[1]
z = ptCoord[2]

print "x: %.2f, y: %.2f, z:%.2f" %(x,y,z)

Posts: 8

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 19547

Trending Articles