OpenGL - 无法调整 glutSolidIcosahedron() 的大小?

发布于 2024-12-25 18:43:48 字数 253 浏览 4 评论 0原文

我正在更改大于默认半径 1 的形状,但似乎不起作用;这就是我正在尝试的:

void glutSolidIcosahedron(GLdouble size);   
glutSolidIcosahedron(9);

没关系,我做到了(如下所示):

glScalef(9.0,9.0,9.0);
glutSolidIcosahedron();

还有其他方法吗?

I'm changing a shape bigger than default radius of 1 but doesn't seem to work; this is what I'm trying:

void glutSolidIcosahedron(GLdouble size);   
glutSolidIcosahedron(9);

It's ok I did it (shown below):

glScalef(9.0,9.0,9.0);
glutSolidIcosahedron();

Is there another way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月打碎记忆 2025-01-01 18:43:48

glutSolidIcosahedron() 创建一个以原点为中心的二十面体,半径 1.0。它不需要任何参数来调整其大小或比例。所以是的,调整其大小的唯一方法是使用 glScalef 或其他一些方法来调整当前矩阵。

glutSolidIcosahedron() creates an icosahedron centered at the origin and with radius 1.0. It does not take any parameters to adjust it's size or scale. So yes, the only way to resize it is to use glScalef or some other method for adjusting the current matrix.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文