Grasshopper

algorithmic modeling for Rhino

how can i delete identical values in the same path

hi all,

i was playing with the new metaball component which is very interesting but it creates a lots of duplicates curves after moving them on different levels(some curves are unique and some others are not( Sometimes, i have 3 4 or 5 duplicates)). Is there a way to delete those dupicates from my tree.
i thought i could compare my resulting list with the same list using a shift but as i don't know how much duplicates i wil have, it's problematic!

Thanks for any replies !

ps: on my def snapshot, "metaball" is red due to a 0 value in my serie but it doesn't change my problem!

Views: 882

Attachments:

Replies to This Discussion

no one can help me?
i'm curious about this too... how to delete duplicate geometry.

it seems like it would be fairly easy with a scripting component, just call the rhino command SelDup then delete... but I'm lost when it comes to scripting.
Metaballs aren't supposed to generate duplicate geometry, are you sure you've set it up correctly (i.e. are all the point charges in a single list?)

The only way I know to filter duplicate anything in Grasshopper, is to sort the data, and measure the distance between every item and its neighbour. If the distance is less than X units, then you've got a duplicate within tolerance.

In terms of duplicate curves I suppose you could try and measure length. Or, when the lengths aren't different enough, you could measure boundingbox-diagonals, or boundingbox corners.

But it won't be easy, and it definitely won't be fool-proof.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hello David,

I had a look again at my definition simplified to (x points connected to P, a serie of 10 values connected to T and 1 value for A and the Metaball component(threshod)) and the duplication increase when i increase A value. i tried grafting my serie but it doesn't change anything.

i allready tried to compare length (x) with the same list shifted by 1 (y) with f(x) = y, then dispatch into 2 lists but it doesn't give interesting resuts for the moment
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service