Grasshopper

algorithmic modeling for Rhino

Python CurveCurveIntersection intersecting a group of curves inside a loop

Hi all,

i want to check for  intersect a group of curves which are copied and rotated randomly on a surface in a loop.

Now i want to to check for intersection and add/or not add the curves.

How can i do this with this method?

I tried using the CurveCurveIntersection method  in my script but without success. So i tried using it in a single component and realized that i have no idea how to test one curve with a list of existing curves.

I add a screenshot as well as my attempts:

thanks for your time!

regards

Views: 2205

Attachments:

Replies to This Discussion

Hi TOm,

thanks for helping!

I am trying use your example in my case. I just have one list of curves so i decided to use the rs.CurveCurveIntersection method which returns a list of several informations so i try to access the first item by

 if len(ie[0]) > 0:

but it returns the error:  'NoneType' object is unsubscriptable

Over all i am not sure if i am doing it right:Can it work like this?

Thanks in advance!

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service