Recur
Recur

Reputation: 1428

Straight tube using tubegeometry

how can I create a straight tube using TubeGeometry?

I can only find examples with curves.

Upvotes: 0

Views: 1104

Answers (1)

Recur
Recur

Reputation: 1428

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 )

Upvotes: 2

Related Questions