We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2ce45 commit d029aeeCopy full SHA for d029aee
meshgpt_pytorch/meshgpt_pytorch.py
@@ -160,8 +160,10 @@ def get_derived_face_features(
160
161
edge1, edge2, *_ = (face_coords - shifted_face_coords).unbind(dim = 2)
162
163
- normals = l2norm(torch.cross(edge1, edge2, dim = -1))
164
- area = normals.norm(dim = -1, keepdim = True) * 0.5
+ cross_product = torch.cross(edge1, edge2, dim = -1)
+
165
+ normals = l2norm(cross_product)
166
+ area = cross_product.norm(dim = -1, keepdim = True) * 0.5
167
168
return dict(
169
angles = angles,
0 commit comments