Okay, so i remember getting deeper into this spiral RnD, and had been working on understanding different types of spirals.

Here is a result of my RnD that i did a while ago, using MaxScript:

--Basic start point,
pCenter = Dummy()
pCenter.scale = point3 0.05 0.05 0.05
pCenter.pos = point3 0 0 0
centerX = pCenter.position.x
centerY = pCenter.position.y
centerZ = pcenter.position.z
/*
Thank you:
https://swiftcoder.wordpress.com/2010/06/21/logarithmic-spiral-distance-field/
HINT: convert to and from
radians = degrees * (pi/180)
degrees = radians * (180/pi)
*/
--initial vars from formula:r = ae^{b*theta}\,
a = 0.0 -- controls the starting angle
b = 0.1 -- controls how tightly the spiral is wound.
t = 0.0 -- this is start angle
theta = t * (pi/180)
across = atan(1/b)
end = 180.0 -- specify max degrees
for theta = 0 to end do
(
r = pow e (b*theta)
r *=0.01
print r
x = centerX + cos(theta) * r
y = centerY + sin(theta) * r
pt = Dummy()
pt.scale = point3 0.1 0.1 0.1
pt.pos = point3 x y centerZ
)

### Like this:

Like Loading...

*Related*