Skip to content

Commit

Permalink
Fix bug in check-sign for SDFs (#137)
Browse files Browse the repository at this point in the history
Address issue #119

Signed-off-by: Krishna Murthy <krrish94@gmail.com>
  • Loading branch information
krrish94 committed Jan 27, 2020
1 parent cbf1eed commit 63e15f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaolin/rep/SDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def check_sign_fast(mesh, points):
v2 = torch.index_select(mesh.vertices, 0, mesh.faces[:, 1]).view(1, -1, 3)
v3 = torch.index_select(mesh.vertices, 0, mesh.faces[:, 2]).view(1, -1, 3)
contains = intersector(points.view(1, -1, 3), v1, v2, v3)
contains = contains > 0
contains = contains % 2 == 1
return contains


Expand Down

0 comments on commit 63e15f3

Please sign in to comment.