
# Compute the distance between points of cloud assigned to a primitive
# Return an array with len=len(assign)
def distanceToPrimitives(cloud, assign, primitives):
    return [ [primVar.distanceTo(cloud[a[0]]) for primVar in primitives if primVar.uid == a[1]] for a in assign]

@@ -270,8 +270,386 @@
 assign%5D%0A
+    %0A    %0A   %0Aimport packages.orderedSet as orderedSet %0Adef parseAngles(strAngle):%0A    angles = orderedSet.OrderedSet()%0A    angles.add(0.)%0A    if len(strAngle) == 1:%0A        strAngle = strAngle%5B0%5D.split(',')%0A%0A    for genAngle in strAngle:%0A        a = float(genAngle)%0A        while a %3C= 180.:%0A            angles.add(a)%0A            a+= float(genAngle)%0A    %0A    return angles%0A    %0A

Add method to parse angle command line arguments