mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-17 14:18:15 +01:00
Fixed degenerate polygons in sphere.
This commit is contained in:
parent
c7e5056741
commit
df09e3867c
@ -397,7 +397,7 @@ function sphere(r, d, circum=false, style="orig", anchor=CENTER, spin=0, orient=
|
|||||||
faces = style=="orig"? [
|
faces = style=="orig"? [
|
||||||
[for (i=[0:1:hsides-1]) hsides-i-1],
|
[for (i=[0:1:hsides-1]) hsides-i-1],
|
||||||
[for (i=[0:1:hsides-1]) lv-hsides+i],
|
[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, i*hsides+(j+1)%hsides],
|
||||||
[(i+1)*hsides+j, i*hsides+(j+1)%hsides, (i+1)*hsides+(j+1)%hsides],
|
[(i+1)*hsides+j, i*hsides+(j+1)%hsides, (i+1)*hsides+(j+1)%hsides],
|
||||||
]
|
]
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,276];
|
BOSL_VERSION = [2,0,277];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user