add missing half of gyroid

This commit is contained in:
Stewart Allen 2019-01-21 15:21:24 -05:00
commit b79d9e5b0e
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ var gs_base_gyroid = exports;
let erow = edge[y];
let lval = vrow[vrow.length - 1];
vrow.forEach((val, x) => {
if (lval <= 0 && val >= 0) {
if ((lval <= 0 && val >= 0) || (lval >= 0 && val <= 0)) {
erow[x] = 1;
points++;
points_lr++;

View file

@ -99,7 +99,7 @@
let erow = edge[y];
let lval = vrow[vrow.length - 1];
vrow.forEach((val, x) => {
if (lval <= 0 && val >= 0) {
if ((lval <= 0 && val >= 0) || (lval >= 0 && val <= 0)) {
erow[x] = 1;
points++;
points_lr++;