generative modeling for Rhino
Hi,
I have two sets of polyline curves, and I would to conduct a set intersection to see if there are any curves present in both sets. When I try to do this, the Set Intersection component throws an error that says "Invalid cast: curve >> primitive data type." I am guessing this means set intersections only work on numbers? But if that is the case, how would I go about comparing two lists of curves for matches? Thank you!
Tags:
Permalink Reply by Danny Boyes on June 13, 2012 at 6:02pm At its very basic level you could compare the midpoints of curves or go as far as comparing the end points
Permalink Reply by AZ on June 13, 2012 at 7:00pm I guess what I am asking is what is the easiest way to remove duplicate geometry from a list?
Permalink Reply by Michael Pryor on June 13, 2012 at 7:21pm for lines and point, download kangaroo it has a dup line and dup point component.
Permalink Reply by AZ on June 13, 2012 at 10:25pm And as for Breps? Is there no solution in that regard?
Permalink Reply by AZ on June 14, 2012 at 1:54pm If anyone is interested, I have found a way to compare two individual breps to test if they are duplicates of one another, pictured below. However, I still haven't figured out how to compare one brep against a list of breps to see if it is a duplicate of any breps on that list, or even to compare two brep lists and compute the difference. Any insight on that problem would be
greatly appreciated.
Permalink Reply by Michael Pryor on June 14, 2012 at 2:12pm I would say with breps, test if their area centroid or volumetric centroid overlap, then if yes remove 1. Essentially the same method of testing points, but using that list to remove the brep, simple list management.
Permalink Reply by AZ on June 14, 2012 at 3:20pm I guess that works. While its possible for two non-identical Breps to have identical centroids, I suppose the likelihood of that happening is very unlikely. Thanks!
Permalink Reply by Michael Pryor on June 14, 2012 at 3:30pm to be more sure test it then against centroids and vertices.
Permalink Reply by AZ on June 14, 2012 at 4:36pm Alright, just gonna leave this here for anyone that might stumble upon this thread in the future. It's what I have so far, and its as close to a rigorous solution as I think I can get. Basically, I assume that no two shapes can be "identical" if they differ in ALL three of the following categories: different volumetric centroid, different volume, different surface area. Not sure how mathematically accurate that statement is, but whatever.
© 2013 Created by Scott Davidson.
Powered by