You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Changelog
2
2
3
+
## 1.4.0
4
+
5
+
- Updated to AdaptivePredicates.jl v1.2, now allowing caches to be passed to the predicates involving `incircle` and `orient3`. These are only useful when using the `AdaptiveKernel()` kernel. Outside of triangulating, these caches are not passed by default, but can be provided. The functions `get_incircle_cache` and `get_orient3_cache` can be used for this purpose on a triangulation (without a triangulation, refer to AdaptivePredicate.jl's `incircleadapt_cache` and `orient3adapt_cache`). See [#185](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/185).
6
+
3
7
## 1.3.1
4
8
5
9
- Fix an issue with a weighted triangulation where the lifted points' convex hull was entirely coplanar. See [#184](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/184)
Copy file name to clipboardExpand all lines: src/algorithms/point_location/brute_force.jl
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,16 +38,22 @@ function brute_force_search(tri::Triangulation, q; itr = each_triangle(tri), pre
38
38
end
39
39
40
40
"""
41
-
brute_force_search_enclosing_circumcircle(tri::Triangulation, i, predicates::AbstractPredicateKernel=AdaptiveKernel()) -> Triangle
41
+
brute_force_search_enclosing_circumcircle(tri::Triangulation, i, predicates::AbstractPredicateKernel=AdaptiveKernel(); cache = nothing) -> Triangle
42
42
43
43
Searches for a triangle in `tri` containing the vertex `i` in its circumcircle using brute force. If
44
44
`tri` is a weighted Delaunay triangulation, the triangle returned instead has the lifted vertex `i`
45
45
below its witness plane. If no such triangle exists, `($∅, $∅, $∅)` is returned. You can control
46
46
the method used for computing predicates via the `predicates` argument.
47
+
48
+
The `cache` argument is passed to [`point_position_relative_to_circumcircle`] and should be one of
49
+
- `nothing`: No cache is used.
50
+
- `get_incircle_cache(tri)`: The cache stored inside `tri`.
51
+
- `AdaptivePredicates.incircleadapt_cache(number_type(tri))`: Compute a new cache.
52
+
The cache is only needed if an `AdaptiveKernel()` is used.
47
53
"""
48
-
functionbrute_force_search_enclosing_circumcircle(tri::Triangulation, i, predicates::AbstractPredicateKernel=AdaptiveKernel())
54
+
functionbrute_force_search_enclosing_circumcircle(tri::Triangulation, i, predicates::AbstractPredicateKernel=AdaptiveKernel(); cache::PredicateCacheType=nothing)
0 commit comments