mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 22:30:35 +08:00
Mesh normal consistency when many faces intersect
Summary: We were double counting some pairs in some cases. Specifically if four or more faces share an edge, then some of them were getting double counted. This is a minimal tweak to avoid that. Reviewed By: nikhilaravi Differential Revision: D26073477 fbshipit-source-id: a40032acf3044bb98dd91cb29904614ef64d5599
This commit is contained in:
committed by
Facebook GitHub Bot
parent
00acda7ab0
commit
7f62eacdb2
@@ -108,7 +108,7 @@ def mesh_normal_consistency(meshes):
|
||||
for e in vert_edge_pair_idx
|
||||
for i in range(len(e) - 1)
|
||||
for j in range(1, len(e))
|
||||
if i != j
|
||||
if i < j
|
||||
]
|
||||
vert_edge_pair_idx = torch.tensor(
|
||||
vert_edge_pair_idx, device=meshes.device, dtype=torch.int64
|
||||
|
||||
Reference in New Issue
Block a user