generative modeling for Rhino
Hi All,
I would like to compare two domains to see if there is an overlap of the ranges.
For example:
Domain One: 1 to 10
Domain Two: 9 to 15
Overlap = True
Is there any component that can help me achieve this?
Many thanks
Luke
Permalink Reply by Andrew Heumann on March 5, 2012 at 7:54pm 
Since you posted this in the C#/VB forum, you can use the static method on Interval to create an interval that is the intersection of two existing intervals. If this method returns an invalid interval, the two did not intersect.
Dim intX As Interval = Interval.FromIntersection(intA, intB)
If (intX.IsValid) Then 'intA and intB intersect
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by Luke Harrison on March 8, 2012 at 8:11am Many thanks
Luke
© 2013 Created by Scott Davidson.
Powered by