Skip to content

Commit 768e89e

Browse files
committed
Update to new aabb version
1 parent c89407b commit 768e89e

4 files changed

Lines changed: 16 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "offroad"
3-
version = "0.4.5"
3+
version = "0.5.0"
44
description = "2D offsetting for arc polylines/polygons."
55
rust-version = "1.88"
66
edition = "2024"
@@ -16,7 +16,7 @@ readme = "README.md"
1616

1717
[dependencies]
1818
togo = "0.6"
19-
aabb = "0.1"
19+
aabb = "0.3"
2020
robust = "1.2"
2121

2222
[lib]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To use the Offroad library in your project, add the following to your `Cargo.tom
99

1010
```toml
1111
[dependencies]
12-
offroad = "0.4"
12+
offroad = "0.5"
1313
```
1414

1515
## 2D offsetting for arc polylines/polygons

src/offset_prune_invalid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn offset_prune_invalid_spatial(
4343
let search_radius = off + PRUNE_EPSILON;
4444
for arc in polyarcs.iter() {
4545
let (min_x, max_x, min_y, max_y) = arc_bounds_expanded(arc, search_radius);
46-
spatial_index.add(min_x, max_x, min_y, max_y);
46+
spatial_index.add(min_x, min_y, max_x, max_y);
4747
}
4848

4949
spatial_index.build();
@@ -58,8 +58,8 @@ fn offset_prune_invalid_spatial(
5858
let mut nearby_indices = Vec::new();
5959
spatial_index.query_intersecting(
6060
offset_min_x,
61-
offset_max_x,
6261
offset_min_y,
62+
offset_max_x,
6363
offset_max_y,
6464
&mut nearby_indices,
6565
);

0 commit comments

Comments
 (0)