本文介绍了使用管几何形状的直管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 TubeGeometry 创建直管?
how can I create a straight tube using TubeGeometry?
我只能找到曲线的例子.
I can only find examples with curves.
推荐答案
我最终查看了文档,并且有额外的参数允许我设置气缸是否开放.
I ended up looking at the documentation and there were extra parameters that allowed me to set the cylinder open ended or not.
正如 mrdoob 所说,我还将 doubleSided 设置为 true,因此圆柱体内部不显示空白.
As mrdoob said, i also set doubleSided to true so the inside of the cylinder is not showing blank.
抱歉忘记展示我是如何使用参数做到的.
sorry forgot to show how I did it using the parameters.
THREE.CylinderGeometry = function ( radiusTop, radiusBottom, height, segmentsRadius, segmentsHeight, openEnded )
这篇关于使用管几何形状的直管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!