alecjacobson / gptoolbox

Matlab toolbox for Geometry Processing.
MIT License
628 stars 166 forks source link

Fix a bug in cubic_is_flat.m #155

Closed rachael-wang closed 8 months ago

rachael-wang commented 8 months ago

According to the formula in the paper,

%ux(ux < vx) = vx(ux < vx);
%uy(uy < vy) = vy(uy < vy);

we should take max(u,v) rather than min.