sandbox/bugs/plane.c
Slanted plane in bview
Planes may not be drawn correctly,


Setting a finite value for the plane alpha works around this problem.

#include "grid/multigrid3D.h"
#include "view.h"
scalar s[];
int main() {
= Y0 = Z0 = -0.5;
X0 init_grid (N);
= {2, 3, 1};
coord normal box();
squares ("s", n = normal);
save ("buggy.png");
// Normalizing does not fix this issue
(&normal);
normalize box();
squares ("s", n = normal);
save ("buggy_2.png");
box();
squares ("s", n = normal, alpha = 1e-4);
save ("no_bug.png");
}