Grasshopper

algorithmic modeling for Rhino

Hello,

I am trying to retrieve the intersections of multiple lines that are placed in two lists. However I can't get it working, only the last intersection point will be given (in output, but not in Rhino interface). An additional problem is the error Rhino.Geometry.Point3d and not the coordinates I would like to have (see image). Does anyone has a solution

Thanks in advance 

Views: 1193

Attachments:

Replies to This Discussion

Moved to the scripting forum.

Well ... if this was C# this would the way to do it.

Yes that is indeed the code for C#. However I am scripting in python and think I am doing something wrong in computing the output but I am not sure about this. I tried already to make use of "append" but that also doesn't work. 

P is not my domain. Let's hope that a good P(S)amaritan could check your code.

Yess thanks to you all. I forgot the last line in the example of Tom, "result.append(ie[0])" now I added this line and it works, many thanks.

The script from Marcus works as well and is short and effective, thanks.

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