node = hou.pwd()
geo = node.geometry()

# Add code to modify contents of geo.
# Use drop down menu to select examples.

from math import radians, sqrt, sin, cos

numpoints = 200
angle = 137.508
cval = 0.2

for i in range(numpoints):
theta = radians (i * angle)

x = cval * sqrt(i) * cos(theta)
y = 0
z = cval * sqrt(i) * sin(theta)

position = (x,y,z)

point = geo.createPoint()
point.setPosition(position)

Leave a Reply

Your email address will not be published. Required fields are marked *