|
| 1 | +```@meta |
| 2 | +CurrentModule = DelaunayTriangulation |
| 3 | +``` |
| 4 | + |
| 5 | +# Voronoi Tessellation |
| 6 | + |
| 7 | +The data structure for a Voronoi tessellation is reasonably simple. The data structure here is probably not as exhaustive as it could be, but it is sufficient. |
| 8 | + |
| 9 | +```@docs |
| 10 | +VoronoiTessellation |
| 11 | +``` |
| 12 | + |
| 13 | +Each field has its own accessor: |
| 14 | + |
| 15 | +```@docs |
| 16 | +get_triangulation(::VoronoiTessellation) |
| 17 | +get_generators(::VoronoiTessellation) |
| 18 | +get_polygon_points(::VoronoiTessellation) |
| 19 | +get_polygons(::VoronoiTessellation) |
| 20 | +get_circumcenter_to_triangle(::VoronoiTessellation) |
| 21 | +get_triangle_to_circumcenter(::VoronoiTessellation) |
| 22 | +get_unbounded_polygons(::VoronoiTessellation) |
| 23 | +get_cocircular_circumcenters(::VoronoiTessellation) |
| 24 | +get_adjacent(::VoronoiTessellation) |
| 25 | +get_boundary_polygons(::VoronoiTessellation) |
| 26 | +``` |
| 27 | + |
| 28 | +There are several useful methods available for working with this data structure. We list some of these below; for functions that actually construct the tessellation, see the dedicated tessellation section in the sidebar. |
| 29 | + |
| 30 | +## Type queries |
| 31 | + |
| 32 | +```@docs |
| 33 | +edge_type(::VoronoiTessellation{Tr,P,I,T,S,E}) where {Tr,P,I,T,S,E} |
| 34 | +number_type(::VoronoiTessellation{Tr,P}) where {Tr,P} |
| 35 | +integer_type(::VoronoiTessellation{Tr,P,I}) where {Tr,P,I} |
| 36 | +triangle_type(::VoronoiTessellation{Tr,P,I,T}) where {Tr,P,I,T} |
| 37 | +``` |
| 38 | + |
| 39 | +## Getters |
| 40 | + |
| 41 | +```@docs |
| 42 | +get_generator(::VoronoiTessellation, ::Any) |
| 43 | +get_polygon_point(::VoronoiTessellation, ::Any) |
| 44 | +get_polygon(::VoronoiTessellation, ::Any) |
| 45 | +get_circumcenter_to_triangle(::VoronoiTessellation, ::Any) |
| 46 | +get_triangle_to_circumcenter(::VoronoiTessellation, ::Any) |
| 47 | +get_polygon_coordinates |
| 48 | +get_neighbouring_boundary_edges |
| 49 | +``` |
| 50 | + |
| 51 | +## Nums |
| 52 | + |
| 53 | +```@docs |
| 54 | +num_polygons |
| 55 | +num_polygon_vertices |
| 56 | +num_generators |
| 57 | +``` |
| 58 | + |
| 59 | +## Adders |
| 60 | + |
| 61 | +```@docs |
| 62 | +add_polygon! |
| 63 | +push_polygon_point! |
| 64 | +add_unbounded_polygon! |
| 65 | +delete_unbounded_polygon! |
| 66 | +add_boundary_polygon! |
| 67 | +``` |
| 68 | + |
| 69 | +## Iterators |
| 70 | + |
| 71 | +```@docs |
| 72 | +each_generator |
| 73 | +each_polygon_vertex |
| 74 | +each_unbounded_polygon |
| 75 | +each_polygon |
| 76 | +each_polygon_index |
| 77 | +``` |
| 78 | + |
| 79 | +## Adjacent |
| 80 | + |
| 81 | +```@docs |
| 82 | +get_adjacent(::VoronoiTessellation, ::Any) |
| 83 | +add_adjacent!(::VoronoiTessellation, ::Any, ::Any) |
| 84 | +delete_adjacent!(::VoronoiTessellation, ::Any, ::Any) |
| 85 | +delete_polygon_adjacent! |
| 86 | +add_polygon_adjacent! |
| 87 | +``` |
| 88 | + |
| 89 | +## Features |
| 90 | + |
| 91 | +```@docs |
| 92 | +polygon_features(::VoronoiTessellation, ::Any) |
| 93 | +get_area |
| 94 | +get_centroid |
| 95 | +polygon_bounds(::VoronoiTessellation, ::Any) |
| 96 | +jump_and_march(::VoronoiTessellation, ::Any) |
| 97 | +``` |
| 98 | + |
| 99 | +## Utilities |
| 100 | + |
| 101 | +```@docs |
| 102 | +get_surrounding_polygon(::VoronoiTessellation, ::Any) |
| 103 | +convert_to_boundary_edge(::VoronoiTessellation, :Any) |
| 104 | +``` |
0 commit comments