import py2rhino as p2r
import random
points = ((0,0,0),(100,0,0), (100,100,0), (0,100,0))
srf = p2r.obj.NurbsSurface.create_by_corner_pnts(points)
srf.modf.rebuild((4,4), (20,20))
points = srf.prop.pnts(True)
print points
points_rand = []
for pt in points:
z = random.randint(0,10)
rand_point = (pt[0], pt[1], z)
points_rand.append(rand_point)
srf2 = p2r.obj.NurbsSurface.create_by_control_pnt_grid((20,20), points_rand, (4,4))
Thursday, September 3, 2009
Wavy surface
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment