Grasshopper

algorithmic modeling for Rhino

I want to get the distances to the centers of the circles

Views: 453

Attachments:

Replies to This Discussion

I'm trying to do in Python this definition of GH

Attachments:

Here's a short solution using list comprehension.  You have to change m to be set to "Item Access".

import rhinoscriptsyntax as rs
# create list of center points from list of circles
centers = [rs.CircleCenterPoint(pM) for pM in M]
d = rs.Distance(m, centers)

Thanks Steve, but I can not understand your idea.

Could you attach uqe correct definition?

thanks!

Sure, here ya go

Attachments:

I could not have devised a long python me! thanks

Here I am with another question. As remove the zeros from the list "D"?
  and another onebecause I do not get the lines?

In that site I can see examples of definitions of GH resolved in Python?

Thank you!
Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service