Potential fix for bug #31111, Remesh modifier generates artifacts on simple surfaces

Changed one of the intersection tests to use < rather than <=

The sharp and smooth modes look fine now for the special case that was
reported broken; blocks mode looks correct but "jumps" slightly from
one octree resolution to another, so may need additional corrections.
This commit is contained in:
Nicholas Bishop 2012-05-10 05:13:10 +00:00
parent 3d65c502e1
commit 10d1cde0ad

@ -265,7 +265,7 @@ unsigned char CubeTriangleIsect::getBoxMask( )
if (mid >= inherit->tri_proj[i][0]) {
bmask[i][0] = 1;
}
if (mid <= inherit->tri_proj[i][1]) {
if (mid < inherit->tri_proj[i][1]) {
bmask[i][1] = 1;
}