Browse Source

ConeGeometry: Check for vertex convergence before removing triangles (#29728)

Garrett Johnson 1 year ago
parent
commit
c58511d0e9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/geometries/CylinderGeometry.js

+ 2 - 2
src/geometries/CylinderGeometry.js

@@ -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;

粤ICP备19079148号