Skip to content

Commit fb80e97

Browse files
committed
use the triangles from triangles, rather than tris.
1 parent a93ac47 commit fb80e97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Graphics/Implicit/ObjectUtil/GetImplicit3.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ getImplicit3 _ (Polyhedron points tris) = \(point) ->
8484
else negate $ res
8585
where
8686
unsignedDistanceAndTriangleClosestTo point = minimumBy (\((_,a),_) ((_,b),_) -> a `compare` b) $ featDistTriangles point
87-
featDistTriangles point = (\a -> (distancePointToTriangle point (findTriangle points a), a)) <$> tris
87+
featDistTriangles point = (\triangle -> (distancePointToTriangle point triangle, triangle)) <$> triangles
8888
-- Decompose our tris into triangles.
8989
triangles = findTriangle points <$> tris
9090
getImplicit3 _ (BoxFrame b e) = \p' ->

0 commit comments

Comments
 (0)