Quantcast
Viewing all articles
Browse latest Browse all 5778

Connect one point to all other points with lines

@odbc wrote:

I have 400 points in my 3d coordinate system, I am trying to connect all of these points to one defined point. This is the code I have so far, I’m wondering if theres a way to use the AddLine command for one point to many others.

import rhinoscriptsyntax as rs

point1 = rs.GetPoint("Pick first point")
if point1:
    other_points = rs.AllObjects()
    rs.AddLine(point1, other_points)

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5778

Trending Articles