Fix the bug where the vertex count is incorrect when the cylinder has a cap. (#16660)

This commit is contained in:
06wj
2024-01-15 15:03:26 +08:00
committed by GitHub
parent cba55facdf
commit 146d67d91d
+1 -1
View File
@@ -60,7 +60,7 @@ export default function cylinder (radiusTop = 0.5, radiusBottom = 0.5, height =
const arc = opts.arc || 2.0 * Math.PI;
let cntCap = 0;
if (!capped) {
if (capped) {
if (radiusTop > 0) {
cntCap++;
}