Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5834

Center Points Distance-Python

$
0
0

Python_test.gh (17.9 KB)
import rhinoscriptsyntax as rs
curve1 = curve[0]
for curve2 in curve:
c1 = rs.CurveAreaCentroid(curve1)
c2 = rs.CurveAreaCentroid(curve2)
dist =rs.Distance(c1,c2)

Hello,I was trying to calculate the distance between the center points of curves. Looks like the ‘rs.CurveAreaCentroid’ command is giving me a tuple instead of Point3d type. However, I need a Point3d type for the rs.Distance command.Anyway I can solve this and move on.?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5834

Latest Images

Trending Articles



Latest Images