博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
数学图形(2.3)绕在圆环上的曲线
阅读量:4550 次
发布时间:2019-06-08

本文共 915 字,大约阅读时间需要 3 分钟。

圆环面螺线

#http://xuxzmail.blog.163.com/blog/static/25131916200976114621705/#Toroidal spiralvertices = 1000t = from 0 to (2*PI)r = 5n = 20x = (r+sin(20*t))*cos(t)y = (r+sin(20*t))*sin(t)z = cos(n*t)r = 10;x = x*ry = y*rz = z*r

 

在前面讲了N叶结,当N值越大时,你会发现整个图形越像一个圆环.这一节就讲其他几种绕在圆环上的曲线.

vertices = 12000t = from 0 to (64*PI)p = rand_int2(2, 32)q = rand_int2(2, 32)r = 2 + cos(q/p*t)x = r*sin(t)y = sin(q/p*t)z = r*cos(t)r = 0.5 + 0.5*sin(t)g = 0.5 + 0.5*yb = 0.5 + 0.5*cos(t)

 

另一个圆环上的曲线

#http://www.mathcurve.com/courbes3d/solenoidtoric/solenoidtoric.shtmlvertices = 10000t = from 0 to (20*PI)n = rand2(0.5, 10)a = rand2(5, 10)b = rand2(1, 5)x = (a + b*cos(n*t))*cos(t)z = (a + b*cos(n*t))*sin(t)y = b*sin(n*t)

 

knot(37)

vertices = 10000t = from 0 to (6*PI)p = 3q = 7r = 2 + cos(q/p*t)x = r*sin(t)y = sin(q/p*t)z = r*cos(t)r = 0.5 + 0.5*sin(t)g = 0.5 + 0.5*yb = 0.5 + 0.5*cos(t)

 

转载于:https://www.cnblogs.com/WhyEngine/p/3840009.html

你可能感兴趣的文章
string和stringbuffer的区别 集合的作用 ArrayList vector linklist hashmap hashtable collection和collections...
查看>>
6月27日 ajax
查看>>
iOS开发之画图板(贝塞尔曲线)
查看>>
4嵌入式作业io
查看>>
IntelliJ Idea编译报错:javacTask: 源发行版 1.7 需要目标发行版 1.7
查看>>
Cognos中新建SQLserver数据源的步骤
查看>>
HttpClient连接超时及读取超时
查看>>
SQL优化方法
查看>>
SEO必须掌握的高级搜索指令
查看>>
生产者消费者模型
查看>>
ORACLE 字符串超长问题解决方案
查看>>
使用ZooKeeper协调多台Web Server的定时任务处理(方案1)
查看>>
20171116 每周例行报告
查看>>
[C#] SHA1校验函数用法
查看>>
linux 下 VMware 提示Unable to change virtual machine power state:
查看>>
洛谷P1585 魔法阵
查看>>
线程 题待做
查看>>
PL/SQL可以连oracle,但是jdbc连不上 【转】
查看>>
使用 highlight.js 在网页中高亮显示java 代码 【原】
查看>>
Android应用 程序框架设计方法
查看>>