First is pretty simple:
The Mesh / Torus Objects / Torus Knot
There are 3 choices:
1 = 3,2 / Trefoil Knot
3 looks like a 4,3 Torus Knot (I could be wrong)
what’s 2 (or if I’m wrong, also, what’s 3)?
Second question.
I’m looking at this:
from this (PDF):
Decorative Knotting Using Trigonometric Parametrizations
http://www.ymmf.hu/sites/talata.istvan.ymmf.hu/files/2014_osz/tergeom_zh_segedanyagok/Decorative_Knotting.pdf
I’m trying to do the Square Knot -
so basically here’s the code:
From This:
x = 0.45*cos(0) + 0.25*cos(-0) - 0.45*cos(-3*0)
y = 0.45*sin(0) + 0.25*sin(-0) - 0.45*sin(-3*0)
z = 0.2*sin(5*0)
to This:
def k3(t):
x = 0.45*math.cos(t) + 0.25*math.cos(-t) - 0.45*math.cos(-3*t)
y = 0.45*math.sin(t) + 0.25*math.sin(-t) - 0.45*math.sin(-3*t)
z = 0.2*math.sin(5*t)
return mathutils.Vector([x,y,z])
modifying the code in:
add_mesh_torus_knot.py
Plugging in my code, I get the following
(which looks close, but, not quite):
What am I doing wrong? How do I bridge the gap?
(Ok, three questions but, two on the same topic)
Thanx