Skip to content
Snippets Groups Projects
Commit 9c7df3ad authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Allow triangles to be parallel to camera vector

parent 728d822b
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment