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
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@
9
9
- 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).
10
10
- 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).
11
11
-`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).
12
14
-`copy` and `deepcopy` are now correctly implemented for `PolygonTree`s and `PolygonHierarchy`s. See [#199](https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/199)
Copy file name to clipboardexpand all lines: docs/src/api/overview.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,5 +23,5 @@ associated accessor functions are intended to be used, e.g. prefer `get_X(tri)`
23
23
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.
Filter = t -> !(t in (DelaunayTriangulation.Graph,))
115
123
```
116
124
117
125
## Curves
118
126
119
127
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`.
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.
Filter = t -> !(t in (DelaunayTriangulation.PointLocationHistory,))
267
299
```
268
300
269
301
## IndividualTriangleStatistics
270
302
271
303
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).
Filter = t -> !(t in (DelaunayTriangulation.TriangulationStatistics,))
293
327
```
294
328
295
329
## InsertionEventHistory
296
330
297
331
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.
Here are functions that are used for defining and working with points in the package.
365
405
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
+
366
417
```@autodocs
367
418
Modules = [DelaunayTriangulation]
368
419
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))
369
421
```
370
422
371
423
## Edges (Primitive Interface)
372
424
373
425
Here are functions that are used for defining and working with edges in the package.
374
426
427
+
```@docs; canonical=false
428
+
random_edge
429
+
each_edge
430
+
contains_edge
431
+
construct_edge
432
+
```
433
+
375
434
```@autodocs
376
435
Modules = [DelaunayTriangulation]
377
436
Pages = ["src/geometric_primitives/edges.jl"]
437
+
Filter = t -> !(t in (DelaunayTriangulation.random_edge, DelaunayTriangulation.each_edge, DelaunayTriangulation.contains_edge, DelaunayTriangulation.construct_edge))
378
438
```
379
439
380
440
## Triangles (Primitive Interface)
381
441
382
442
Here are functions that are used for defining and working with triangles in the package.
383
443
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
+
384
454
```@autodocs
385
455
Modules = [DelaunayTriangulation]
386
456
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!))
387
458
```
388
459
389
460
## Boundary Nodes (Primitive Interface)
390
461
391
462
Here are functions that are used for defining and working with boundary nodes in the package.
One issue that may arise when dealing with Voronoi tessellations is the
9
9
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).
12
12
13
13
In the example below, we clip the tessellation to the convex hull of the point set by using `clip=true`
14
14
in the keyword arguments.
@@ -43,7 +43,6 @@ fig
43
43
44
44
As you can see, the unbounded polygons, and any polygons that included points
45
45
outside of the convex hull, have now been clipped to the convex hull.
46
-
47
46
## Just the code
48
47
An uncommented version of this example is given below.
49
48
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