Find the code below
==================================================
import rhinoscriptsyntax as rs
import random
import math
step = 0
for i in range(0,41):
pt1 = (5+step,5,0)
pt2 = (5+step,45,0)
pt3 = (5,5+step,0)
pt4 = (45,5+step,0)
rs.AddLine(pt1,pt2)
rs.AddLine(pt3,pt4)
rs.AddLine(pt1,pt4)
rs.AddLine(pt2,pt3)
step = step+1
point = []
c=pow(2,0.5)
p=math.pi
for d in rs.frange(0.0,(p*100),(p/16)):
x= 15*math.sin(c*d)*math.cos(d)+22.5
y= 15*math.sin(c*d)*math.sin(d)+22.5
z= 0
pt = (x,y,z)
point.append(pt)
rs.AddCurve(point)
=====================================================
Rose Petal or Retina Design
Download
0 formats
No download links available.
2D Pattern Design in Rhino 6 using Edit Python Script (Tutorial 1) | NatokHD