v1.3.0
This release finally introduces weighted triangulations and power diagrams, and also allows for users to provide a generic convex polygon to for clipping a Voronoi tessellation instead of only the convex hull.
- Weighted triangulations have now been implemented, as have power diagrams. The weights are also no longer restricted to
Float64type. See #180. intersection_of_edge_and_bisector_raynow accepts aprojectkeyword argument. See #180.get_weight(w, i)now returns, wheniis not an integer, eitheri[3]if it represents a point in space or0. See #180.- Define
project_onto_line(p, q, r)for projecting a pointronto the line defined bypandq. See #180. - Fixed a bug with clipping Voronoi tessellations in cases where there are no intersections of any Voronoi polygon with the convex hull. See #180.
voronoinow accepts an optionalclip_polygonkeyword argument, defaulting tonothing(corresponding to the convex hull), allowing for a convex clip polygon to be used instead of the convex hull. Theclip_polygonshould be aTupleof the form(points, boundary_nodes)where theboundary_nodesgive vertices ofpointsadhering to the usual convention. Note that this could be used as an alternative to looping overget_polygon_coordinatesfor clipping to a rectangle. See #180.centroidal_smoothnow acceptsclip_pointsandclip_verticesas keyword arguments, defaulting tonothing(corresponding to the convex hull), to accommodate the newclip_polygonkeyword argument invoronoi. See #180.has_multiple_curves,has_multiple_sections, andnum_boundary_edgesnow have methods forTuples of integers. A bug was also fixed withnumber_typeof aTupleofTuples of coordinates returning theTupletype instead of the coordinate type. See #180.
What's Changed
- Implement weighted Delaunay triangulations and power diagrams by @DanielVandH in #180
Full Changelog: v1.2.0...v1.3.0