Hello
An example with Cross Product
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
def uniqueVectors(lstVect, tolerance = 0.001):
if len(lstVect) > 0:
vectA =lstVect.pop(0)
otherV = []
for v in lstVect:
if abs(v.Cross(vectA).Z) > tolerance:
otherV.append(v)
return [vectA] + uniqueVectors(otherV)
else:
return []
OUT = uniqueVectors(IN[0])