print "hausuebung2" import rhinoscriptsyntax as rs alleObjekte= rs.AllObjects() rs.DeleteObjects(alleObjekte) print range(10) import random ################################################################# coords3 = [] anzahl = 5 xVal3 = 5 yVal3= 5 zVal3 = 5 for a in range (anzahl): for b in range (anzahl): for c in range (10): x = a*xVal3 + random.uniform(5, xVal3) +10 y = b*yVal3 + random.uniform(5, yVal3) +10 z = c*zVal3 + random.uniform(5, zVal3) cor = [x,y,z] coords3.append(cor) points = rs.AddPoints(coords3) ################################################################# coords4 = [] anzahl = 5 xVal4 = 5 yVal4= 5 zVal4 = 5 for a in range (anzahl): for b in range (10): for c in range (anzahl): x = a*xVal4 + random.uniform(5, xVal4) +20 y = b*yVal4 + random.uniform(5, yVal4) +20 z = c*zVal4 + random.uniform(5, zVal4) cor = [x,y,z] coords4.append(cor) points = rs.AddPoints(coords4) ###################################################### rs.AddCurve (coords3, degree=5) curves= rs.AddCurve (coords3,degree=5) rs.ObjectColor(curves, [255,0,0]) rs.AddCurve (coords4, degree=5) curves= rs.AddCurve (coords4,degree=5) rs.ObjectColor(curves, [0,255,0])