clipSH3(points,
corners,
inull=False,
closed=False)
|
|
Clip a polygon against a clip region or box using the Sutherland-Hodgman algorithm.
- Parameters:
points - The polygon points (LatLon []).
corners - Three or more points defining a convex clip region
(LatLon []) or two points to specify a rectangular
clip box.
inull - Optionally, include null edges (bool ).
closed - Close the clipped points (bool ).
- Returns:
- Yield a ClipSH3Tuple
(start, end, original)
for each edge of the clipped polygon.
- Raises:
ValueError - Insufficient number of points or the
corners specify a polar, zero-area, non-convex
or otherwise invalid clip region.
|