import rhinoscriptsyntax as rs import random as ran import Rhino.Geometry as rg #delete everything start from scratch allobj = rs.AllObjects() rs.DeleteObjects(allobj) offs1 = 2 #offset between points offs2 = 5 nb = 14 a=15 b=8 #coords of circle center h = nb*offs1 + 10 #height of the circle center r = 24 #radius of the circle rs.EnableRedraw(False) newCoords = [] for i in range(nb): for j in range(nb): for k in range(nb): if not (i>0 and j>0) or not(i<(nb-1) and j<(nb-1)): square = rs.AddPoint(i,j,k) # rs.MoveObjects(square, (i*offs1,j*offs1,k*offs1)) cor = [i,j,k] newCoords.append(cor) ran.shuffle(newCoords) rs.AddCurve(newCoords, 1) #creating circle made of points, that are evenly put around the centerpoint in one surface center = rs.AddPoint(a,b,h) rs.ZoomExtents() """ int_liste = range (100) circleList = [] for x in circleList: for y in circleList: circle = rs.AddPoint(x,y,h) for a in circleList: circleList.append(x,y,h) rs.MoveObjects(circle, (i*offs2,j*offs2,h)) """