algorithmic modeling for Rhino
Tags:
I had the same Problem. I wanted to compare a List of Lines and only get the non-Equals. But I found it was very complicate to construct a solution with the existing Methods. So I made my own, it works with Lines and Points. Curves didn't work yet and I didn't had the time yet, to find out how to get Equals of Curves in C#-Grasshopper-Components. Feel free to use it and if anyone have an idea, about how to compare Curves in a C#-Component, I would be interested.
Comparing lines and curves is a whole different ball game than comparing points, which can be done easily using 'Set Intersection'. To demonstrate, I created a 'Integer Points' cluster that creates random 3D points where X, Y and Z are all integer values, increasing the likelihood of duplicate points, in blue. 'ExDiff (Set Difference)' returns the points NOT common to both lists, in yellow:
I mean I don't wanted to split the Properties of a Point, Line or Curve into Primitive Types. And Lines and Points can be compared very easy, like in the image below. But a Curve can't be easily compared in the way I did with Points and Lines, I think it's because they're having too much Properties.
Ok you can do that, but I wanted to compare Lines, that won't work. And even for Points I have one Button instead of four.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by