Three.js: TubeBufferGeometry How to build top and bottom Faces

Created on 12 Oct 2017  路  2Comments  路  Source: mrdoob/three.js

I am using TubeBufferGeometry to build a model similar to steel, if you can achieve the ExtrudeBufferGeometry source code inside the buildLidFaces method, thank you very much!

Question

Most helpful comment

TubeBufferGeometry does not support end caps. You will have to do that yourself. Consider adding a CircleBufferGeometry at each end as a work-around.

All 2 comments

TubeBufferGeometry does not support end caps. You will have to do that yourself. Consider adding a CircleBufferGeometry at each end as a work-around.

identify vertices of the end

create a Shape by itaversing those vertices in "nearest next" order

create geometry out of the shape

merge tube geometry with the cap

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

seep picture seep  路  3Comments

zsitro picture zsitro  路  3Comments

boyravikumar picture boyravikumar  路  3Comments

danieljack picture danieljack  路  3Comments