Fixed degenerate polygons in sphere.

This commit is contained in:
Revar Desmera 2020-04-23 03:53:55 -07:00
parent c7e5056741
commit df09e3867c
2 changed files with 2 additions and 2 deletions

View file

@ -397,7 +397,7 @@ function sphere(r, d, circum=false, style="orig", anchor=CENTER, spin=0, orient=
faces = style=="orig"? [
[for (i=[0:1:hsides-1]) hsides-i-1],
[for (i=[0:1:hsides-1]) lv-hsides+i],
for (i=[0:1:vsides-1], j=[0:1:hsides-1]) each [
for (i=[0:1:vsides-2], j=[0:1:hsides-1]) each [
[(i+1)*hsides+j, i*hsides+j, i*hsides+(j+1)%hsides],
[(i+1)*hsides+j, i*hsides+(j+1)%hsides, (i+1)*hsides+(j+1)%hsides],
]

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,276];
BOSL_VERSION = [2,0,277];
// Section: BOSL Library Version Functions