数学图形(2.26) 3D曲线结

我收集的几种曲线结

knot(huit)

复制代码
#http://www.mathcurve.com/courbes3d/noeuds/noeudenhuit.shtml
vertices = 1000

t = from 0 to (80*PI)

x = sin(t)
y = sin(t)*cos(t)/2
z = sin(2*t)*sin(t/2) / 4

r = 10;
x = x*r
y = y*r
z = z*r
复制代码

knot(Paul Bourke)

复制代码
#http://www.mathcurve.com/courbes3d/noeuds/noeudenhuit.shtml
vertices = 1000

t = from 0 to (80*PI)

x = 3*cos(t) + 5*cos(3*t)
y = 3*sin(t) + 5*sin(3*t)
z = sin(5*t/2)*sin(3*t) + sin(4*t) - sin(6*t)

r = 4;
x = x*r
y = y*r
z = z*r
复制代码

knot(Rohit Chaudhary)

复制代码
#http://www.mathcurve.com/courbes3d/noeuds/noeudenhuit.shtml
vertices = 12000

t = from 0 to (2*PI)

a = sin(t)
b = cos(t)
c = sin(2*t)
d = cos(2*t)
e = sin(3*t)
f = cos(3*t)

x = 32*b - 51*a - 104*d - 34*c + 104*f - 91*e
y = 94*b + 41*a + 113*d - 68*f - 124*e
z = 16*b + 73*a - 211*d - 39*c - 99*f - 21*e
复制代码

原文地址:https://www.cnblogs.com/WhyEngine/p/3843987.html