Straight tube using tubegeometry

梦想的初衷 提交于 2019-12-12 01:36:43

问题


how can I create a straight tube using TubeGeometry?

I can only find examples with curves.


回答1:


I ended up looking at the documentation and there were extra parameters that allowed me to set the cylinder open ended or not.

As mrdoob said, i also set doubleSided to true so the inside of the cylinder is not showing blank.

Edit: sorry forgot to show how I did it using the parameters.

THREE.CylinderGeometry = function ( radiusTop, radiusBottom, height, segmentsRadius, segmentsHeight, openEnded )


来源:https://stackoverflow.com/questions/11638686/straight-tube-using-tubegeometry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!