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

konijn picture konijn  路  3Comments

jack-jun picture jack-jun  路  3Comments

Horray picture Horray  路  3Comments

filharvey picture filharvey  路  3Comments

jlaquinte picture jlaquinte  路  3Comments