Skip to content

Commit

Permalink
ConeGeometry: Check for vertex convergence before removing triangles (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson authored Oct 23, 2024
1 parent 8be6bed commit c58511d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geometries/CylinderGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ class CylinderGeometry extends BufferGeometry {

// faces

if ( radiusTop > 0 ) {
if ( radiusTop > 0 || y !== 0 ) {

indices.push( a, b, d );
groupCount += 3;

}

if ( radiusBottom > 0 ) {
if ( radiusBottom > 0 || y !== heightSegments - 1 ) {

indices.push( b, c, d );
groupCount += 3;
Expand Down

0 comments on commit c58511d

Please sign in to comment.