update rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/SphereGraph.js.

Signed-off-by: zhoubin <zhoubin113@huawei.com>
This commit is contained in:
zhoubin 2024-07-18 09:54:11 +00:00 committed by Gitee
parent 8b9d59e328
commit fdfd2d7021
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -72,7 +72,7 @@ export class SphereGraph {
const b = grid[iy][ix];
const c = grid[iy + 1][ix];
const d = grid[iy + 1][ix + 1];
if (iy !== 0 || this.thetaStart > 0){
if (iy !== 0 || this.thetaStart > 0) {
indices.push(a, b, d);
}
if (iy !== heightSegments - 1 || thetaEnd < Math.PI) {