问题
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