Potential fix for bug #31111, Remesh modifier generates artifacts on simple surfaces
authorNicholas Bishop <nicholasbishop@gmail.com>
Thu, 10 May 2012 05:13:10 +0000 (05:13 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Thu, 10 May 2012 05:13:10 +0000 (05:13 +0000)
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.

intern/dualcon/intern/Projections.cpp

index 7e7d5e0081c1c78e4eb27abb5982032530ff5a4f..2a52cc9972acf4fe461e30db6b7f1774629fe74d 100644 (file)
@@ -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;
                }