import rhinoscriptsyntax as rs import random alleobjekte = rs.AllObjects() rs.DeleteObjects(alleobjekte) rs.EnableRedraw(0) ############################################################# #Wuerfelkern coords = [] anzahl = 10 xVal = 15 yVal = 15 zVal = 15 for a in range (anzahl): for b in range (anzahl): for c in range (anzahl): x = a*xVal y = b*yVal z = c*zVal cor = [x,y,z] coords.append(cor) points = rs.AddPoints(coords) rs.ObjectColor(points, [0,0,255]) rs.AddCurve( coords, degree=1) curves = rs.AddCurve( coords, degree=1) rs.ObjectColor(curves, [200,0,200]) ############################################################# #Stiehl 1 coords2 = [] anzahl2 = 3 xVal2 = -1 yVal2 = 1 zVal2 = 20 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -20 y = e*yVal2 +150 z = f*zVal2 -20 cor= [x,y,z] coords2.append (cor) points = rs.AddPoints(coords2) rs.ObjectColor(points, [0,0,255]) rs.AddCurve( coords2, degree=1) curves = rs.AddCurve( coords2, degree=1) rs.ObjectColor(curves, [200,0,0]) ############################################################# #Stiehl 2 coords3 = [] anzahl2 = 3 xVal2 = -1 yVal2 = 1 zVal2 = 20 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -20 y = e*yVal2 -20 z = f*zVal2 -20 cor= [x,y,z] coords3.append (cor) points = rs.AddPoints(coords3) rs.ObjectColor(points, [0,0,255]) rs.AddCurve( coords3, degree=1) curves = rs.AddCurve( coords3, degree=1) rs.ObjectColor(curves, [200,0,0]) ############################################################# #Stiehl 3 coords4 = [] anzahl2 = 3 xVal2 = -1 yVal2 = 1 zVal2 = 20 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 +150 y = e*yVal2 +150 z = f*zVal2 -20 cor= [x,y,z] coords4.append (cor) points = rs.AddPoints(coords4) rs.ObjectColor(points, [0,0,255]) rs.AddCurve( coords4, degree=1) curves = rs.AddCurve( coords4, degree=1) rs.ObjectColor(curves, [200,0,0]) ############################################################# #Stiehl 4 coords5 = [] anzahl2 = 3 xVal2 = -1 yVal2 = 1 zVal2 = 20 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 +150 y = e*yVal2 -20 z = f*zVal2 -20 cor= [x,y,z] coords5.append (cor) points = rs.AddPoints(coords5) rs.ObjectColor(points, [0,0,255]) rs.AddCurve( coords5, degree=1) curves = rs.AddCurve( coords5, degree=1) rs.ObjectColor(curves, [200,0,0]) ############################################################# #Riegel 1 coords6 = [] anzahl2 = 3 xVal2 = 17.889 yVal2 = 1 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -20 y = e*yVal2 -20 z = f*zVal2 +151 cor= [x,y,z] coords6.append (cor) points = rs.AddPoints(coords6) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords6, degree=1) curves = rs.AddCurve( coords6, degree=1) rs.ObjectColor(curves, [0,0,200]) ############################################################# #Riegel 2 coords7 = [] anzahl2 = 3 xVal2 = 17.889 yVal2 = 1 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -20 y = e*yVal2 -20 z = f*zVal2 -20 cor= [x,y,z] coords7.append (cor) points = rs.AddPoints(coords7) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords7, degree=1) curves = rs.AddCurve( coords7, degree=1) rs.ObjectColor(curves, [0,0,200]) ############################################################# #Riegel 3 coords8 = [] anzahl2 = 3 xVal2 = 17.889 yVal2 = 1 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -20 y = e*yVal2 +150 z = f*zVal2 -20 cor= [x,y,z] coords8.append (cor) points = rs.AddPoints(coords8) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords8, degree=1) curves = rs.AddCurve( coords8, degree=1) rs.ObjectColor(curves, [0,0,200]) ############################################################# #Riegel 4 coords9 = [] anzahl2 = 3 xVal2 = 17.889 yVal2 = 1 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -20 y = e*yVal2 +150 z = f*zVal2 +151 cor= [x,y,z] coords9.append (cor) points = rs.AddPoints(coords9) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords9, degree=1) curves = rs.AddCurve( coords9, degree=1) rs.ObjectColor(curves, [0,0,200]) ############################################################# #Riegel 5 coords10 = [] anzahl2 = 3 xVal2 = 1 yVal2 = 17.889 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -29 y = e*yVal2 -11 z = f*zVal2 +151 cor= [x,y,z] coords10.append (cor) points = rs.AddPoints(coords10) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords10, degree=1) curves = rs.AddCurve( coords10, degree=1) rs.ObjectColor(curves, [20,0,200]) ############################################################# #Riegel 6 coords11 = [] anzahl2 = 3 xVal2 = 1 yVal2 = 17.889 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 -29 y = e*yVal2 -11 z = f*zVal2 -20 cor= [x,y,z] coords11.append (cor) points = rs.AddPoints(coords11) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords11, degree=1) curves = rs.AddCurve( coords11, degree=1) rs.ObjectColor(curves, [20,0,200]) ############################################################# #Riegel 7 coords12 = [] anzahl2 = 3 xVal2 = 1 yVal2 = 17.889 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 +141 y = e*yVal2 -11 z = f*zVal2 -20 cor= [x,y,z] coords12.append (cor) points = rs.AddPoints(coords12) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords12, degree=1) curves = rs.AddCurve( coords12, degree=1) rs.ObjectColor(curves, [20,0,200]) ############################################################# #Riegel 8 coords13 = [] anzahl2 = 3 xVal2 = 1 yVal2 = 17.889 zVal2 = 1 for d in range (anzahl): for e in range (anzahl): for f in range (anzahl): x = d*xVal2 +141 y = e*yVal2 -11 z = f*zVal2 +151 cor= [x,y,z] coords13.append (cor) points = rs.AddPoints(coords13) rs.ObjectColor(points, [255,0,0]) rs.AddCurve( coords13, degree=1) curves = rs.AddCurve( coords13, degree=1) rs.ObjectColor(curves, [20,0,200])