algorithmic modeling for Rhino
Tags:
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.
  Private Sub RunScript(ByVal points As List(Of Object), ByVal y As Object, ByRef A As Object) 
    Dim twins As New List(Of Integer)
    For i As Integer = 0 To points.Count - 1
      For b As Integer = i + 1 To points.Count - 1
        If points(i) = points(b)Then
          twins.Add(i)
          twins.Add(b)
          'Im not sure this is a good way to go but it worked for me
        End If
      Next
    Next
    A = twins
  End Sub
/filip
Awesome!
This component cant remove same floating numbers when you not use sort list component.
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
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
    © 2025               Created by Scott Davidson.             
    Powered by
    