From 9c7df3ad6fb95db758c455fe69d75d83a25f4b69 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Tue, 12 Nov 2019 16:34:56 +0000 Subject: [PATCH] RF: Allow triangles to be parallel to camera vector --- fsl/data/mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/data/mesh.py b/fsl/data/mesh.py index 8d05af196..383afcb17 100644 --- a/fsl/data/mesh.py +++ b/fsl/data/mesh.py @@ -773,4 +773,4 @@ def needsFixing(vertices, indices, fnormals, loBounds, hiBounds): # camera), assume that we need to # flip the triangle winding order. angles = np.dot(norms, affine.normalise(camera - vert)) - return ((angles > 0).sum() / len(itris)) < 0.5 + return ((angles >= 0).sum() / len(itris)) < 0.5 -- GitLab