Hi, I need to find the match between the curve (the white one) and the other group of curves (the green ones) in the picture and then orient it to matching green one. Do you have a good idea?
Any help is appreciated
Hi, I need to find the match between the curve (the white one) and the other group of curves (the green ones) in the picture and then orient it to matching green one. Do you have a good idea?
Any help is appreciated
Hello
there was a discussion on this subjects
and surely others.
What is similarity ? Area, Number of points … ?
A file will be appreciated
Does this method work for you?
curves.gh (12.6 KB)
Hi Laurent,
Thanks for reply.You can find the grasshopper file attached.
My aim is to find out if the curves match in terms of geometric / shape. (I hope I was able to express myself.)
unnamed x.gh (11.3 KB)
Hi submillimetre,
Thanks for reply.
If the number of pieces is too large, there may be a possibility that this method will not work.
(However, if no better solution is offered, I will accept your method as a solution.)
Same thing as @submillimetre, closed curve, area and length but I added some percentage of similarity.
It works fast for 6000 curves.
It’s astonishing that only comparing areas and lengths works so well, at least in this case!
I think there is a low probability that a shape has same area and length and is not the same. Quantifying the probability seems out of reach for now.
If needed the third step could be inertia
Fourth step could be to align the curve and look if they fit with a tolerance.
Hard to say where to stop
Do some sort of U Turn: Mimic (kinda) the way that an AGM cruise missile works. Of course several things more (like “best orienting” boxes) are required … thus the EntryLevel status.
Matrix_FindMatchingCurves_EntryLevel_V1.gh (130.2 KB)