我想使用纯pythonapi定位一个圆柱体,使一端的中心位于(x0,y0,z0),另一端的中心位于(x1,y1,z1)。在
我想使用Python OpenGL或任何其他GL库来实现这一点,而不是blender库
我的问题
我在stackoverflow中搜索,找到了这个问题
But it is using blender and I don't want it
我需要从命令行或pycharmide运行python脚本
所以bpy模块不能在搅拌机外工作
我想要一个这样格式的函数
^{pr2}$圆柱体具有显示功能
请指引我
2) also suggest how to clear the screen fully after drawing the cylinder
如果您想使用modernOpenGL,那么您必须生成一个Vertex Array Object并编写一个Shader。在
使用更少代码行的解决方案是使用Legacy OpenGL和^{} 或{a5}。在
使用此(不推荐使用的)工具集,可以绘制几行代码的圆柱体,例如:
参见:
相关问题 更多 >
编程相关推荐