Skip to content

Commit

Permalink
update to julia v1.7
Browse files Browse the repository at this point in the history
walkray(): show more explicit that we return the input vertex if we found an infinite ray
  • Loading branch information
axsk committed Apr 6, 2022
1 parent 77318ed commit f60e0a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "VoronoiGraph"
uuid = "e5f3e3e8-00d7-4f74-8011-648b521326aa"
authors = ["Sikorski <sikorski@zib.de> and contributors"]
version = "0.2.0"
version = "0.2.1"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -20,7 +20,7 @@ ProgressMeter = "1"
RecipesBase = "1"
SpecialFunctions = "1"
StaticArrays = "0.12, 1"
julia = "1.6"
julia = "1.6, 1.7"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
7 changes: 4 additions & 3 deletions src/voronoi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ function walkray(sig::Sigma, r::Point, xs::Points, searcher, i)
end
sig′, t = raycast(sig_del, r, u, xs, searcher)
if t < Inf
sig = sig′
r = r + t*u
r′ = r + t*u
return sig′, r′
else
return sig, r # if the vertex has an unbounded ray, return the same vertex
end
return sig, r
end

""" BFS of vertices starting from `S0` """
Expand Down

0 comments on commit f60e0a2

Please sign in to comment.