Grasshopper

algorithmic modeling for Rhino

intersecttion between line and list of lines???????????????????????????

it´s possibly to make something like this:

how do i write the index for all the lines of the list?????

List<Line> lines = new List<Line>();

List<Line> intersect = new List<Line>();

for (int i = 0; i < lines.Count; i++)

{

bool yes; 

double a, b;

yes = Rhino.Geometry.Intersection.Intersect.LineLine(lines[i], lines[¿¿¿¿ALL - i ????], out a, out b, 0.0, true)

if (yes)

{

intersect.add(lines[i]);

}

else

{}

}

Tags: intersecttion, line, listline

Views: 146

Reply to This

Replies to This Discussion

Hi Jorge,

you can't pass in a list when a function requires a single Line. You're just going to have to write a second loop inside your first to iterate over the other lines.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thanks you one more time david

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2014   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service