数学图形(2.24) 帖在圆柱面上的曲线

这一节文章中,将总结一些在圆柱面上的曲线.

之前的文章数学图形(2.8)Viviani曲线,它是圆柱与球相交而生成的曲线.

(1)crepe曲线

#http://www.mathcurve.com/courbes3d/crepe/crepe.shtml

vertices = 2000

t = from 0 to (2*PI)

a = 10
 
x = a*cos(t)
y = a*sin(t)
z = a*sin(2*t)

(2)Seam of a clinder

#http://www.mathcurve.com/courbes3d/couture/couture.shtml

vertices = 2000

t = from 0 to (2*PI)

a = 10

x = a*cos(3*t)
y = a*sin(3*t)
z = a*sqrt(3)/2*sin(2*t)

(3)Tangentoidal crown

#http://www.mathcurve.com/courbes3d/couronnetangentoidale/couronnetangentoidale.shtml

vertices = 12000

t = from 0 to (2*PI)

a = 10
b = rand2(1, 10)
n = rand_int2(1, 20)
 
x = a*cos(t)
y = a*sin(t)
z = b*tan(n*t/2)

#z = limit(z, -50, 50)

这是帖在柱面上的tan曲线

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