algorithmic modeling for Rhino
I'm trying to do in Python this definition of GH
 masas.3dm, 175 KB
 masas.3dm, 175 KB                             masas (sin py).gh, 5 KB
 masas (sin py).gh, 5 KB                            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
 masassinpy.gh, 5 KB
 masassinpy.gh, 5 KB                            I could not have devised a long python me! thanks
 lineas.3dm, 23 KB
 lineas.3dm, 23 KB                             lineas.gh, 2 KB
 lineas.gh, 2 KB                            Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
    © 2025               Created by Scott Davidson.             
    Powered by
    