Grasshopper

algorithmic modeling for Rhino

How can I get center point of this surface using Python script?

Views: 2488

Replies to This Discussion

Hi joy

,Check the attached file

Attachments:

Thank you.

Unfortunately, I don't use grasshopper at all. Any way I can do this using python script?

well, why use any script at all if the only thing u need is the center of this particular surface?

I use mac version and there is no gh support yet. I also think that script is straight forward than the gh interface. But thanks :)

import rhinoscriptsyntax as rs
srf= rs.GetObject("Select a one surface",rs.filter.surface)
pt = rs.AddPoint(rs.SurfaceAreaCentroid(srf)[0])

Thanks :) 

thanks

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service