Skip to content

Commit c9a8090

Browse files
authored
Fix issue with missing and duplicate docstrings (#198)
1 parent 14aa479 commit c9a8090

19 files changed

+524
-35
lines changed

NEWS.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
- Fixed issue with `use_barriers` when a ghost edge is selected at random during point location. See [#196](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/196).
1010
- Introduced the (currently internal) function `get_positive_curve_indices` for finding curves with positive orientation in a `Triangulation`. [#196](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/196).
1111
- `is_exterior_curve`, `is_interior_curve`, `num_exterior_curves`, and `is_disjoint` are now defined based on `get_positive_curve_indices` rather than `get_exterior_curve_indices`. See [#196](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/196).
12+
- `PointLocationHistory` was not marked as public. This has been fixed. See [#198](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/198).
13+
- Fixed an issue with missing docstrings and duplicate docstrings in the documentation. See [#198](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/198).
1214
- `copy` and `deepcopy` are now correctly implemented for `PolygonTree`s and `PolygonHierarchy`s. See [#199](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/199)
1315

1416
## 1.5.0

docs/make.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ DocMeta.setdocmeta!(
99
recursive = true,
1010
)
1111

12-
const IS_LIVESERVER = false && get(ENV, "LIVESERVER_ACTIVE", "false") == "true"
12+
const IS_LIVESERVER = get(ENV, "LIVESERVER_ACTIVE", "false") == "true"
1313
if IS_LIVESERVER
1414
using Revise
1515
Revise.revise()

docs/src/api/data_structures.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Triangulation
1212
VoronoiTessellation
1313
ConvexHull
1414
InsertionEventHistory
15+
PointLocationHistory
1516
```

docs/src/api/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ associated accessor functions are intended to be used, e.g. prefer `get_X(tri)`
2323
Each section will first start with the list of all functions to be listed, and then the docstrings of those functions will be given. There will be some docstrings that fit into multiple categories, in which case one is chosen. Here is an index of all the functions listed in the above pages.
2424

2525
```@index
26-
Pages = ["data_structures.md", "triangulation.md", "operations.md", "voronoi.md", "convex_hull.md", "curves.md", "iterators.md", "point_location.md", "predicates.md", "statistics.md", "primitive_interfaces.md", "other.md"]
26+
Pages = ["convex_hull.md", "curves.md", "data_structures.md", "iterators.md", "operations.md", "other.md", "point_location.md", "predicates.md", "primitives.md", "statistics.md", "triangulation.md", "voronoi.md"]
2727
```

docs/src/extended/algorithms.md

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Pages = ["src/algorithms/triangulation/basic_operations/add_segment.jl"]
5050
```@autodocs
5151
Modules = [DelaunayTriangulation]
5252
Pages = ["src/algorithms/triangulation/constrained_triangulation.jl"]
53+
Filter = t -> !(t in (DelaunayTriangulation.convert_boundary_points_to_indices,))
5354
```
5455

5556
```@autodocs
@@ -92,6 +93,7 @@ Pages = ["src/data_structures/triangulation/methods/segments.jl"]
9293
```@autodocs
9394
Modules = [DelaunayTriangulation]
9495
Pages = ["src/data_structures/triangulation/methods/weights.jl"]
96+
Filter = t -> !(t in (DelaunayTriangulation.ZeroWeight,))
9597
```
9698

9799
## Mesh Refinement
@@ -170,6 +172,7 @@ Pages = ["src/data_structures/triangulation/methods/adjacent2vertex.jl"]
170172
```@autodocs
171173
Modules = [DelaunayTriangulation]
172174
Pages = ["src/data_structures/triangulation/methods/graph.jl"]
175+
Filter = t -> !(t in (DelaunayTriangulation.get_vertices, DelaunayTriangulation.get_edges))
173176
```
174177

175178
```@autodocs

docs/src/extended/data_structures.md

+82-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ MaxPriorityQueue
1717
```@autodocs
1818
Modules = [DelaunayTriangulation]
1919
Pages = ["data_structures/queue/max_priority_queue.jl"]
20+
Filter = t -> !(t in (DelaunayTriangulation.MaxPriorityQueue,))
2021
```
2122

2223
## Queue
@@ -30,6 +31,7 @@ Queue
3031
```@autodocs
3132
Modules = [DelaunayTriangulation]
3233
Pages = ["data_structures/queue/queue.jl"]
34+
Filter = t -> !(t in (DelaunayTriangulation.Queue,))
3335
```
3436

3537
## BalancedBST
@@ -43,6 +45,7 @@ BalancedBST
4345
```@autodocs
4446
Modules = [DelaunayTriangulation]
4547
Pages = ["data_structures/trees/bst.jl"]
48+
Filter = t -> !(t in (DelaunayTriangulation.BalancedBST,))
4649
```
4750

4851
## RTree
@@ -56,6 +59,7 @@ RTree
5659
```@autodocs
5760
Modules = [DelaunayTriangulation]
5861
Pages = ["data_structures/trees/rtree.jl"]
62+
Filter = t -> !(t in (DelaunayTriangulation.RTree,))
5963
```
6064

6165
```@docs
@@ -73,6 +77,7 @@ PolygonHierarchy
7377
```@autodocs
7478
Modules = [DelaunayTriangulation]
7579
Pages = ["data_structures/trees/polygon_hierarchy.jl"]
80+
Filter = t -> !(t in (DelaunayTriangulation.PolygonHierarchy,))
7681
```
7782

7883
## Adjacent
@@ -86,6 +91,7 @@ Adjacent
8691
```@autodocs
8792
Modules = [DelaunayTriangulation]
8893
Pages = ["data_structures/triangulation/adjacent.jl"]
94+
Filter = t -> !(t in (DelaunayTriangulation.Adjacent,))
8995
```
9096

9197
## Adjacent2Vertex
@@ -99,6 +105,7 @@ Adjacent2Vertex
99105
```@autodocs
100106
Modules = [DelaunayTriangulation]
101107
Pages = ["data_structures/triangulation/adjacent2vertex.jl"]
108+
Filter = t -> !(t in (DelaunayTriangulation.Adjacent2Vertex,))
102109
```
103110

104111
## Graph
@@ -112,13 +119,14 @@ Graph
112119
```@autodocs
113120
Modules = [DelaunayTriangulation]
114121
Pages = ["data_structures/triangulation/graph.jl"]
122+
Filter = t -> !(t in (DelaunayTriangulation.Graph,))
115123
```
116124

117125
## Curves
118126

119127
There are many data structures used to define the curves we provide in this package, all subtyping the `AbstractParametricCurve` type. This type, and its subtypes, are all in the public API with the exception of `PiecewiseLinear`.
120128

121-
```@docs; canonical=false
129+
```@docs; canonical=false
122130
AbstractParametricCurve
123131
LineSegment
124132
CircularArc
@@ -128,39 +136,55 @@ BSpline
128136
CatmullRomSpline
129137
```
130138

139+
```@docs; canonical=false
140+
twice_differentiate
141+
total_variation
142+
thrice_differentiate
143+
differentiate
144+
arc_length
145+
```
146+
131147
```@autodocs
132148
Modules = [DelaunayTriangulation]
133149
Pages = ["data_structures/mesh_refinement/curves/abstract.jl"]
150+
Filter = t -> !(t in (DelaunayTriangulation.AbstractParametricCurve, DelaunayTriangulation.twice_differentiate, DelaunayTriangulation.total_variation, DelaunayTriangulation.thrice_differentiate, DelaunayTriangulation.differentiate, DelaunayTriangulation.arc_length))
134151
```
135152

136153
```@autodocs
137154
Modules = [DelaunayTriangulation]
138155
Pages = ["data_structures/mesh_refinement/curves/beziercurve.jl"]
156+
Filter = t -> !(t in (DelaunayTriangulation.BezierCurve,))
157+
139158
```
140159

141160
```@autodocs
142161
Modules = [DelaunayTriangulation]
143162
Pages = ["data_structures/mesh_refinement/curves/bspline.jl"]
163+
Filter = t -> !(t in (DelaunayTriangulation.BSpline,))
144164
```
145165

146166
```@autodocs
147167
Modules = [DelaunayTriangulation]
148168
Pages = ["data_structures/mesh_refinement/curves/catmullromspline.jl"]
169+
Filter = t -> !(t in (DelaunayTriangulation.CatmullRomSpline,))
149170
```
150171

151172
```@autodocs
152173
Modules = [DelaunayTriangulation]
153174
Pages = ["data_structures/mesh_refinement/curves/circulararc.jl"]
175+
Filter = t -> !(t in (DelaunayTriangulation.CircularArc,))
154176
```
155177

156178
```@autodocs
157179
Modules = [DelaunayTriangulation]
158180
Pages = ["data_structures/mesh_refinement/curves/ellipticalarc.jl"]
181+
Filter = t -> !(t in (DelaunayTriangulation.EllipticalArc,))
159182
```
160183

161184
```@autodocs
162185
Modules = [DelaunayTriangulation]
163186
Pages = ["data_structures/mesh_refinement/curves/linesegment.jl"]
187+
Filter = t -> !(t in (DelaunayTriangulation.LineSegment,))
164188
```
165189

166190
```@autodocs
@@ -211,6 +235,7 @@ ConvexHull
211235
```@autodocs
212236
Modules = [DelaunayTriangulation]
213237
Pages = ["data_structures/convex_hull.jl"]
238+
Filter = t -> !(t in (DelaunayTriangulation.ConvexHull,))
214239
```
215240

216241
## Triangulation
@@ -224,6 +249,7 @@ Triangulation
224249
```@autodocs
225250
Modules = [DelaunayTriangulation]
226251
Pages = ["data_structures/triangulation/triangulation.jl"]
252+
Filter = t -> !(t in (DelaunayTriangulation.Triangulation,))
227253
```
228254

229255
## TriangulationCache
@@ -246,6 +272,7 @@ BoundaryEnricher
246272
```@autodocs
247273
Modules = [DelaunayTriangulation]
248274
Pages = ["data_structures/mesh_refinement/boundary_enricher.jl"]
275+
Filter = t -> !(t in (DelaunayTriangulation.BoundaryEnricher,))
249276
```
250277

251278
## AbstractEach(Vertex/Edge/Triangle) Iterators
@@ -261,22 +288,28 @@ Pages = ["data_structures/triangulation/methods/iterators.jl"]
261288

262289
We provide a means for storing the history of triangles encountered during point location, using a `PointLocationHistory` struct. The main motivation for this struct is for constrained triangulations.
263290

291+
```@docs; canonical=false
292+
PointLocationHistory
293+
```
294+
264295
```@autodocs
265296
Modules = [DelaunayTriangulation]
266297
Pages = ["data_structures/point_location_history.jl"]
298+
Filter = t -> !(t in (DelaunayTriangulation.PointLocationHistory,))
267299
```
268300

269301
## IndividualTriangleStatistics
270302

271303
We provide an `IndividualTriangleStatistics` struct for storing statistics about individual triangles in a triangulation. This struct is in the public API, as listed in the [API](../api/overview.md).
272304

273-
```@docs; canonical=false
305+
```@docs; canonical=false
274306
IndividualTriangleStatistics
275307
```
276308

277309
```@autodocs
278310
Modules = [DelaunayTriangulation]
279311
Pages = ["data_structures/statistics/individual_triangle_statistics.jl"]
312+
Filter = t -> !(t in (DelaunayTriangulation.IndividualTriangleStatistics,))
280313
```
281314

282315
## TriangulationStatistics
@@ -290,15 +323,21 @@ TriangulationStatistics
290323
```@autodocs
291324
Modules = [DelaunayTriangulation]
292325
Pages = ["data_structures/statistics/triangulation_statistics.jl"]
326+
Filter = t -> !(t in (DelaunayTriangulation.TriangulationStatistics,))
293327
```
294328

295329
## InsertionEventHistory
296330

297331
For mesh refinement we need a way to identify what happens to a triangulation after a point is added, in case we need to reverse the insertion. For this, we use `InsertionEventHistory` internally.
298332

333+
```@docs; canonical=false
334+
InsertionEventHistory
335+
```
336+
299337
```@autodocs
300338
Modules = [DelaunayTriangulation]
301339
Pages = ["data_structures/mesh_refinement/insertion_event_history.jl"]
340+
Filter = t -> !(t in (DelaunayTriangulation.InsertionEventHistory,))
302341
```
303342

304343
## RefinementConstraints
@@ -339,6 +378,7 @@ VoronoiTessellation
339378
```@autodocs
340379
Modules = [DelaunayTriangulation]
341380
Pages = ["data_structures/voronoi.jl"]
381+
Filter = t -> !(t in (DelaunayTriangulation.VoronoiTessellation,))
342382
```
343383

344384
## Polygon
@@ -363,34 +403,74 @@ Pages = ["data_structures/shuffled_polygon_linked_list.jl"]
363403

364404
Here are functions that are used for defining and working with points in the package.
365405

406+
```@docs; canonical=false
407+
set_point!
408+
push_point!
409+
pop_point!
410+
num_points
411+
getpoint
412+
get_point
413+
each_point_index
414+
each_point
415+
```
416+
366417
```@autodocs
367418
Modules = [DelaunayTriangulation]
368419
Pages = ["src/geometric_primitives/points.jl"]
420+
Filter = t -> !(t in (DelaunayTriangulation.set_point!, DelaunayTriangulation.push_point!, DelaunayTriangulation.pop_point!, DelaunayTriangulation.num_points, DelaunayTriangulation.getpoint, DelaunayTriangulation.get_point, DelaunayTriangulation.each_point_index, DelaunayTriangulation.each_point))
369421
```
370422

371423
## Edges (Primitive Interface)
372424

373425
Here are functions that are used for defining and working with edges in the package.
374426

427+
```@docs; canonical=false
428+
random_edge
429+
each_edge
430+
contains_edge
431+
construct_edge
432+
```
433+
375434
```@autodocs
376435
Modules = [DelaunayTriangulation]
377436
Pages = ["src/geometric_primitives/edges.jl"]
437+
Filter = t -> !(t in (DelaunayTriangulation.random_edge, DelaunayTriangulation.each_edge, DelaunayTriangulation.contains_edge, DelaunayTriangulation.construct_edge))
378438
```
379439

380440
## Triangles (Primitive Interface)
381441

382442
Here are functions that are used for defining and working with triangles in the package.
383443

444+
```@docs; canonical=false
445+
triangle_edges
446+
sort_triangle
447+
each_triangle
448+
delete_triangle!
449+
contains_triangle
450+
construct_triangle
451+
add_triangle!
452+
```
453+
384454
```@autodocs
385455
Modules = [DelaunayTriangulation]
386456
Pages = ["src/geometric_primitives/triangles.jl"]
457+
Filter = t -> !(t in (DelaunayTriangulation.triangle_edges, DelaunayTriangulation.sort_triangle, DelaunayTriangulation.each_triangle, DelaunayTriangulation.delete_triangle!, DelaunayTriangulation.contains_triangle, DelaunayTriangulation.construct_triangle, DelaunayTriangulation.add_triangle!))
387458
```
388459

389460
## Boundary Nodes (Primitive Interface)
390461

391462
Here are functions that are used for defining and working with boundary nodes in the package.
392463

464+
```@docs; canonical=false
465+
has_multiple_sections
466+
has_multiple_curves
467+
get_section_index
468+
get_curve_index
469+
get_boundary_nodes
470+
```
471+
393472
```@autodocs
394473
Modules = [DelaunayTriangulation]
395474
Pages = ["src/geometric_primitives/boundary_nodes.jl"]
475+
Filter = t -> !(t in (DelaunayTriangulation.has_multiple_sections, DelaunayTriangulation.has_multiple_curves, DelaunayTriangulation.get_section_index, DelaunayTriangulation.get_curve_index, DelaunayTriangulation.get_boundary_nodes))
396476
```

docs/src/extended/utils.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ CurrentModule = DelaunayTriangulation
66

77
This section lists some of the internal utility functions, or other miscellaneous functions, used in this package.
88

9+
```@docs; canonical=false
10+
number_type
11+
```
12+
913
```@autodocs
1014
Modules = [DelaunayTriangulation]
1115
Pages = ["src/utils/utils.jl"]
16+
Filter = t -> !(t in (DelaunayTriangulation.number_type,))
1217
```
1318

1419
```@autodocs

docs/src/literate_tutorials/centroidal.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tri = triangulate(points; rng)
1919
vorn = voronoi(tri, clip = true)
2020

2121
# To now compute the centroidal tessellation, use [`centroidal_smooth`](@ref). (
22-
# If you want to straight from a triangulation to a centroidal tessellation, you
22+
# If you want to go straight from a triangulation to a centroidal tessellation, you
2323
# can also just use `smooth_vorn = voronoi(tri, clip = true, smooth = true)`.)
2424
smooth_vorn = centroidal_smooth(vorn; rng)
2525

docs/src/tutorials/clipped.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ EditURL = "https://github.com/JuliaGeometry/DelaunayTriangulation.jl/tree/main/d
77

88
One issue that may arise when dealing with Voronoi tessellations is the
99
presence of unbounded polygons occurring on the boundary. One way to deal with this
10-
is to clip polygons to the convex hull of the tessellation. (Arbitrary clipping boundaries
11-
are on the to-do list, but they are not yet implemented.)
10+
is to clip polygons to the convex hull of the tessellation. We describe how to also clip
11+
the tessellation to a generic convex polygon, instead of just the convex hull, in [this tutorial](clipped_polygon.md).
1212

1313
In the example below, we clip the tessellation to the convex hull of the point set by using `clip=true`
1414
in the keyword arguments.
@@ -43,7 +43,6 @@ fig
4343

4444
As you can see, the unbounded polygons, and any polygons that included points
4545
outside of the convex hull, have now been clipped to the convex hull.
46-
4746
## Just the code
4847
An uncommented version of this example is given below.
4948
You can view the source code for this file [here](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/tree/main/docs/src/literate_tutorials/clipped.jl).

0 commit comments

Comments
 (0)