Commit 9c7df3ad authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Allow triangles to be parallel to camera vector

parent 728d822b
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment