Home | Trees | Indices | Help |
|
---|
|
Clip a path or polygon of LatLon
points against a
rectangular box or an arbitrary (convex) region.
Box clip functions clipCS4 Cohen-Sutherland and clipLB6 Liang-Barsky, region clip functions clipFHP4 Foster-Hormann-Popa, clipGH4 Greiner-Hormann and clipSH and clipSH3 Sutherland-Hodgeman. .
Version: 23.09.20
Classes | |
ClipCS4Tuple 4-Tuple (start, end, i, j) for each edge of a
clipped path with the start and
end points (LatLon ) of the portion of the
edge inside or on the clip box and the indices i and
j (int ) of the edge start and end points
in the original path.
|
|
ClipFHP4Tuple 4-Tuple (lat, lon, height, clipid) for each point of
the clipFHP4 result with the lat -,
lon gitude, height and clipid
of the polygon or clip.
|
|
ClipGH4Tuple 4-Tuple (lat, lon, height, clipid) for each point of
the clipGH4 result with the lat -,
lon gitude, height and clipid
of the polygon or clip.
|
|
ClipLB6Tuple 6-Tuple (start, end, i, fi, fj, j) for each edge of
the clipped path with the start and
end points (LatLon ) of the portion of the
edge inside or on the clip box, indices i and
j (both int ) of the original path edge
start and end points and fractional indices fi
and fj (both FIx) of the start and
end points along the edge of the original path.
|
|
ClipSH3Tuple 3-Tuple (start, end, original) for each edge of a
clipped polygon, the start and end
points (LatLon ) of the portion of the edge inside or
on the clip region and original indicates whether the
edge is part of the original polygon or part of the clip region
(bool ).
|
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
__all__ = _ALL_LAZY.clipy
|
Function Details |
Clip a path against a rectangular clip box using the Cohen-Sutherland algorithm.
|
Clip one or more polygons against a clip region or box using Forster-Hormann-Popa's C++ implementation transcoded to pure Python.
See Also: Forster, Hormann and Popa, class BooleanFHP and function clipGH4. |
Clip one or more polygons against a clip region or box using the Greiner-Hormann algorithm, Correia's implementation modified and extended.
Note:
To handle degenerate cases like See Also: Greiner-Hormann, Ionel Daniel Stroe, Correia's univ-polyclip, class BooleanGH and function clipFHP4. |
Clip a path against a rectangular clip box using the Liang-Barsky algorithm.
|
Clip a polygon against a clip region or box using the Sutherland-Hodgman algorithm.
|
Clip a polygon against a clip region or box using the Sutherland-Hodgman algorithm.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Oct 22 17:06:19 2024 | http://epydoc.sourceforge.net |