Skip to content

Commit 0a4f4b5

Browse files
Fix trimesh inertia tensor
Co-authored-by: Gwenhwyfar Hartshaw <1832977+krsnik02@users.noreply.github.com>
1 parent 44acba1 commit 0a4f4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mass_properties/mass_properties_trimesh3d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn tetrahedron_unit_inertia_tensor_wrt_point(
148148
+ x4 * y4 * 2.0)
149149
* 0.05;
150150

151-
Matrix::new(a0, -b1, -c1, -b1, b0, -a1, -c1, -a1, c0)
151+
Matrix::new(a0, -c1, -b1, -c1, b0, -a1, -b1, -a1, c0)
152152
}
153153

154154
/// Computes the volume and center-of-mass of a mesh.

0 commit comments

Comments
 (0)