Grasshopper

algorithmic modeling for Rhino

Hi, looking for some help with this script. Basically I've offset a couple of rectangles a fixed distance. I want to find the boundary of the perimeter surface so I can later extrude it. I know this can be done inside Grasshopper exclusively but I want to learn how to do it in Python (ideally I'd like to create all boundary surfaces within the script but am not sure how). Thanks for any help, I'm still learning the ins and outs of Python. 

Andrew

Views: 1407

Attachments:

Replies to This Discussion

Hi Andrew

Check the attached file. I hope this helps 

Attachments:

Hi, that's what I was looking for, good learning experience, thanks!

a = []

for i in plot: 
offset_curve = rs.OffsetCurve(i, x, -11, 0)[0]
boun_srf = rs.AddPlanarSrf([i,offset_curve])[0]
a.append(boun_srf)

Just for my own education, what is the function of the numbers and brackets in bold, above?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service