如何产生一个细分二十面体?二十

由网友(女痞)分享简介:我问了一些问题,在这里,看到这个几何形提过几次在其他测地线的形状,但我很好奇究竟如何,我会生成一个关于点XYZ?I've asked some questions here and seen this geometric shape mentioned a few times among other geodesic...

我问了一些问题,在这里,看到这个几何形提过几次在其他测地线的形状,但我很好奇究竟如何,我会生成一个关于点XYZ?

I've asked some questions here and seen this geometric shape mentioned a few times among other geodesic shapes, but I'm curious how exactly would I generate one about a point xyz?

推荐答案

这里是引用我用的细分二十面体,基于OpenGL红皮书。在BSD许可源$ C ​​$ C 我iPhone应用程序分子包含code生成简单二十面体并装入了OpenGL ES的顶点缓冲区对象。我还没有纳入细分,以提高渲染的质量,但它在我的计划。

Here is one reference that I've used for subdivided icosahedrons, based on the OpenGL Red Book. The BSD-licensed source code to my iPhone application Molecules contains code for generating simple icosahedrons and loading them into a vertex buffer object for OpenGL ES. I haven't yet incorporated subdivision to improve the quality of the rendering, but it's in my plans.

阅读全文

相关推荐

最新文章