[startup szenario] a0

|
 |     
text-node created: 2024-10-17 23:10:33 work submitted: 2024-10-17 23:19:20 last editing/rating: 2026-01-02 15:56:52
Hu2 import rhinoscriptsyntax as rs
import random
rs.EnableRedraw( 0 )
alleObjekte = rs.AllObjects()
#print alleObjekte
rs.DeleteObjects( alleObjekte )
#
##print range(10)
coords = []
i = 2
anzahl = 5
xVal = 1.1 #random.uniform(0.9, 0.9)
yVal = 1.2
zVal = 1.1
for i in range(anzahl):
for j in range(anzahl):
for k in range(anzahl):
x = i*xVal + random.uniform(0.1, xVal)
if i > anzahl*0.5:
x += 10
y = j*yVal+ random.uniform(0.1, yVal)
if i > anzahl*0.5:
y += 10
z = k*zVal + random.uniform(0.1, zVal)
if k > anzahl*0.5:
z += 20
cor = [x, y, 0 ]
coords.append( cor )
points = rs.AddPoints( coords )
vector1 = (4,1,1)
vector2 = (1,1,0)
vector = rs.VectorAdd(vector1, vector2)
circ = []
degree = 50
for co in range (degree):
circpoint = co*rs.RotateObjects(points,[0,10,0],random.randint(0,5000),vector,vector)
circ.append( circpoint )
random.shuffle( circpoint )
rs.AddCurve( circpoint[1:200], 3 )
comment by _diag: suboptimal ist .. (2024-10-18 01:00:38) - dass du nicht das script submittest - dass im script auf P:/ objekte rotiert werden: das manipulieren (herumschieben u -drehen etc) von objekten ist so_gar nicht unsere vorgehensweise ! - und dass ich noch immer nicht deine hu_01 am IAM_server finde
|
|
|