algorithmic modeling for Rhino
hey,
i have problems getting a boolean from a curvecurve intersection in vb. looking through other posts i learned to use like
ints(0).pointA
to get an intersection point on the first line. i found the explanation under the sdk properties of intersectionevent. now i dont know which part of the array i have to pick 0, 1, 2 ... and which property i have to add or if it is achieved some other way at all. the boolean should be true if an intersection takes place.
thx
Tags:
Hi gised,
the CurveCurveIntersection returns a list of intersection events. Sometimes this list is empty and there are no intersections, sometimes this list contains a single event for a single intersection, sometimes curves intersect in thousands of different places. The "(0)" in ints(0).PointA indicates you're looking at the first intersection event.
So to determine whether or not intersection takes place, all you have to do is check to see if the count of ints is zero:
If (ints.Count = 0) Then No intersections
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by