diff options
| author | Sébastien Crozet <developer@crozet.re> | 2024-07-20 17:14:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 17:14:43 +0200 |
| commit | cf74150763dd575bc0399087e845e9be62aba56f (patch) | |
| tree | 9670b7b3d817aea9255a69efa26967389880b409 /crates/rapier3d-stl | |
| parent | 55a7d8b7ad37227f5c97131c4852a94efe748194 (diff) | |
| download | rapier-0.22.0.tar.gz rapier-0.22.0.tar.bz2 rapier-0.22.0.zip | |
Release v0.22.0 (#695)v0.22.0
Diffstat (limited to 'crates/rapier3d-stl')
| -rw-r--r-- | crates/rapier3d-stl/Cargo.toml | 2 | ||||
| -rw-r--r-- | crates/rapier3d-stl/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/rapier3d-stl/Cargo.toml b/crates/rapier3d-stl/Cargo.toml index fd6fc86..38b3508 100644 --- a/crates/rapier3d-stl/Cargo.toml +++ b/crates/rapier3d-stl/Cargo.toml @@ -16,4 +16,4 @@ edition = "2021" thiserror = "1.0.61" stl_io = "0.7" -rapier3d = { version = "0.21", path = "../rapier3d" } +rapier3d = { version = "0.22", path = "../rapier3d" } diff --git a/crates/rapier3d-stl/src/lib.rs b/crates/rapier3d-stl/src/lib.rs index 0273bc0..7b22e74 100644 --- a/crates/rapier3d-stl/src/lib.rs +++ b/crates/rapier3d-stl/src/lib.rs @@ -90,7 +90,7 @@ pub fn load_from_raw_mesh( let mut vertices: Vec<_> = raw_mesh .vertices .iter() - .map(|xyz| Point::new(xyz[0] as Real, xyz[1] as Real, xyz[2] as Real)) + .map(|xyz| Point::new(xyz[0], xyz[1], xyz[2])) .collect(); vertices .iter_mut() |
