有谁有一个在javascript中绘制细分二十面体的示例,他们可以分享吗?
有谁有一个在javascript中绘制细分二十面体的示例,他们可以分享吗?
Does anyone have a sample for drawing a subdivided icosahedron in javascript, that they would be able to share?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有一个使用二十面体的球体镶嵌算法。网上有很多地方可以找到它们,但请随意使用和修改我的实现。尽管我必须说,就内存而言,我的实现并不是最好的,有些顶点是重复的。
I have a sphere tessellation algorithm using a icosahedron. There are plenty of places on the net to find them but feel free to use and modify my implementation. Though i must say, my implementation is not the best when it come to memory, some vertices are duplicates.
Worldwind Java SDK 有一个二十面体镶嵌器,可以非常简单地移植到 JavaScript。它也遵循类似 BSD 的许可证。
gov.nasa.worldwind.util.GeometryBuilder
http://builds.worldwind.arc.nasa。政府/download.asp
Worldwind Java SDK has a icosahedron tessellator that should be very simple to port to javascript. It's under a BSD-like license as well.
gov.nasa.worldwind.util.GeometryBuilder
http://builds.worldwind.arc.nasa.gov/download.asp