From 10d1cde0ad6753c5859b3e43030d045b370c924f Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Thu, 10 May 2012 05:13:10 +0000 Subject: 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. --- intern/dualcon/intern/Projections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/dualcon') diff --git a/intern/dualcon/intern/Projections.cpp b/intern/dualcon/intern/Projections.cpp index 7e7d5e0081c..2a52cc9972a 100644 --- a/intern/dualcon/intern/Projections.cpp +++ b/intern/dualcon/intern/Projections.cpp @@ -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; } -- cgit v1.2.3