cartagen.skeletonize_natural#
- skeletonize_natural(polygon, threshold_range=(0.7, 1.4))#
Create the natural TIN skeleton of a polygon.
The natural skeleton means the entry points of the skeleton are naturally calculated during the skeleton creation, it depends on the Delaunay triangulation.
This version is inspired by the enhanced TIN skeleton proposed by Wang [1]
- Parameters:
polygon (
Polygon) – The polygon to compute the skeleton from.threshold_range (
tuple, optional) – This value is only used for inner triangles calculated by the Delaunay triangulation. If two of the length ratio between each pair of edges (of an inner triangle) is outside the given range, the skeleton uses the middle of the line connecting the two center of the longest lines of the triangle, else it uses the centroid of the triangle
- Returns:
listofLineString
See also
skeletonize_artificialCreate a TIN skeleton by enforcing entry points.
skeletonize_networkCreate a TIN skeleton and blend it with the provided network.
References