computeVertexNormals in cutom BufferGeometry

I want to create slanted cylinder for my purpose.

so I tried and some how created(which suits my requirement) BufferGeometry which takes radius, depth & angle.

But my problem is with rendering.
I used side: THREE.FrontSIde in material.

but some faces are not shown properly as shown in pic due to vertexNormal created by computeVertexNormals.

You may have to determine the normals yourself.

see Addon. Produces almost infinite many time-varying geometries with functions - #11 by hofk

Try computeFaceNormals

computeFaceNormals() has no effect for BufferGeometry.

1 Like