Filter out duplicate numbers in a list? - Grasshopper2024-03-28T09:06:11Zhttps://www.grasshopper3d.com/forum/topics/filter-out-duplicate-numbers?feed=yes&xn_auth=noThere is one very quick way f…tag:www.grasshopper3d.com,2017-09-27:2985220:Comment:18200842017-09-27T16:07:24.770ZTejas Chavanhttps://www.grasshopper3d.com/profile/TejasChavan437
<p>There is one very quick way for numbers..feed the numbers into x-input of 'construct point component'; then 'cull duplicate points'; then 'deconstruct point' and get back the numbers from x-output, without any duplicates</p>
<p>There is one very quick way for numbers..feed the numbers into x-input of 'construct point component'; then 'cull duplicate points'; then 'deconstruct point' and get back the numbers from x-output, without any duplicates</p> This component cant remove sa…tag:www.grasshopper3d.com,2014-11-01:2985220:Comment:11596692014-11-01T17:00:23.000ZValentinhttps://www.grasshopper3d.com/profile/Valentin772
<p>This component cant remove same floating numbers when you not use sort list component.</p>
<p>This component cant remove same floating numbers when you not use sort list component.</p> Awesome!tag:www.grasshopper3d.com,2012-11-13:2985220:Comment:7251882012-11-13T14:59:19.406ZMax Maleinhttps://www.grasshopper3d.com/profile/MaxMalein
<p>Awesome!</p>
<p>Awesome!</p> oh, yes this was useful for m…tag:www.grasshopper3d.com,2012-03-28:2985220:Comment:5646712012-03-28T13:54:33.694ZFilip Loguinhttps://www.grasshopper3d.com/profile/filiploguin
<p>oh, yes this was useful for me, still need the vb but this saves some space.</p>
<p></p>
<p>oh, yes this was useful for me, still need the vb but this saves some space.</p>
<p></p> Ok, good to know. However in…tag:www.grasshopper3d.com,2012-03-27:2985220:Comment:5645232012-03-27T23:26:51.324ZFilip Loguinhttps://www.grasshopper3d.com/profile/filiploguin
<p>Ok, good to know. However in my case its necessary to know which indexes that are effected. Im working with parallel lists, one for the geometry and another including additional data for that specific geometry item. Thanks though</p>
<p></p>
<p>Ok, good to know. However in my case its necessary to know which indexes that are effected. Im working with parallel lists, one for the geometry and another including additional data for that specific geometry item. Thanks though</p>
<p></p> There is in the tab sets>s…tag:www.grasshopper3d.com,2012-03-27:2985220:Comment:5642982012-03-27T22:18:42.005ZMichael Pryorhttps://www.grasshopper3d.com/profile/MikePryor
<p>There is in the tab sets>sets the delete consecutive component. Also, there is find similar member component there, which will let you search a list for specific values. Also if you are trying to remove duplicate lines or points, kangaroo has two very handy components that specifically do that. …<a href="http://storage.ning.com/topology/rest/1.0/file/get/2768718359?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768718359?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>There is in the tab sets>sets the delete consecutive component. Also, there is find similar member component there, which will let you search a list for specific values. Also if you are trying to remove duplicate lines or points, kangaroo has two very handy components that specifically do that. <a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768718359?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768718359?profile=RESIZE_1024x1024" width="721"/></a></p> tag:www.grasshopper3d.com,2012-03-27:2985220:Comment:5643522012-03-27T20:35:09.518Ztazhttps://www.grasshopper3d.com/profile/taz
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768719059?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2768719059?profile=original" width="546" class="align-full"/></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768719059?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2768719059?profile=original" width="546" class="align-full"/></a></p> I know this tread is inactive…tag:www.grasshopper3d.com,2012-03-27:2985220:Comment:5642702012-03-27T18:13:40.621ZFilip Loguinhttps://www.grasshopper3d.com/profile/filiploguin
<p>I know this tread is inactive but i thought i might share something of the topic. This script in addition to gh components splits a list of points(or anything else) to a list of twins(identical objects) and a list of remaining objects. It has no limit to the amount of identical objects and the index is remained. This may contain flaws, but hopefully it could be of use.</p>
<p></p>
<p> Private Sub RunScript(ByVal points As List(Of Object), ByVal y As Object, ByRef A As Object) <br></br> Dim…</p>
<p>I know this tread is inactive but i thought i might share something of the topic. This script in addition to gh components splits a list of points(or anything else) to a list of twins(identical objects) and a list of remaining objects. It has no limit to the amount of identical objects and the index is remained. This may contain flaws, but hopefully it could be of use.</p>
<p></p>
<p> Private Sub RunScript(ByVal points As List(Of Object), ByVal y As Object, ByRef A As Object) <br/> Dim twins As New List(Of Integer)<br/> For i As Integer = 0 To points.Count - 1<br/> For b As Integer = i + 1 To points.Count - 1<br/> If points(i) = points(b)Then<br/> twins.Add(i)<br/> twins.Add(b)<br/> 'Im not sure this is a good way to go but it worked for me<br/> End If<br/> Next<br/> Next<br/> A = twins<br/> End Sub</p>
<p></p>
<p>/filip</p> Heres yet another way to find…tag:www.grasshopper3d.com,2012-01-03:2985220:Comment:5089062012-01-03T07:51:55.584Zsam brisendinehttps://www.grasshopper3d.com/profile/sambrisendine
<p>Heres yet another way to find unique values...in a dumb but simple way using values to create a line to split.....in the image..its the lower portion</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768700894?profile=original" target="_self"><img class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768700894?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>the upper portion is dividing a list of surfaces into two lists based on the number of sides it…</p>
<p>Heres yet another way to find unique values...in a dumb but simple way using values to create a line to split.....in the image..its the lower portion</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768700894?profile=original"><img width="721" class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768700894?profile=RESIZE_1024x1024" width="721"/></a></p>
<p>the upper portion is dividing a list of surfaces into two lists based on the number of sides it has</p> Is there any way to do this w…tag:www.grasshopper3d.com,2011-09-27:2985220:Comment:4390412011-09-27T20:34:26.324ZMatthew Underwoodhttps://www.grasshopper3d.com/profile/MatthewUnderwood
Is there any way to do this with a list of non-numeric items? And with a list that is continually expanding?
Is there any way to do this with a list of non-numeric items? And with a list that is continually expanding?