Skip to content

Commit d029aee

Browse files
committed
address #83
1 parent eb2ce45 commit d029aee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

meshgpt_pytorch/meshgpt_pytorch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ def get_derived_face_features(
160160

161161
edge1, edge2, *_ = (face_coords - shifted_face_coords).unbind(dim = 2)
162162

163-
normals = l2norm(torch.cross(edge1, edge2, dim = -1))
164-
area = normals.norm(dim = -1, keepdim = True) * 0.5
163+
cross_product = torch.cross(edge1, edge2, dim = -1)
164+
165+
normals = l2norm(cross_product)
166+
area = cross_product.norm(dim = -1, keepdim = True) * 0.5
165167

166168
return dict(
167169
angles = angles,

0 commit comments

Comments
 (0)