Update notes on algorithm. Switched from Liang-Barsky to Sutherland-Hodgman.

This commit is contained in:
Stefan van der Walt
2014-09-29 01:19:48 +02:00
committed by Stefan van der Walt
parent 88a269c282
commit 4907da0409
+2 -8
View File
@@ -21,14 +21,8 @@ def polygon_clip(rr, cc, r0, c0, r1, c1):
Notes
-----
The algorithm is a translation of the Pascal code found in [1]_ and
includes fixes from Anti-Grain Geometry v2.4.
References
----------
.. [1] You-Dong Liang and Brian A. Barsky,
An Analysis and Algorithm for Polygon Clipping,
Communications of the ACM, Vol 26, No 11, November 1983.
This makes use of Sutherland-Hodgman clipping as implemented in
AGG 2.4 and exposed in Matplotlib.
"""
from matplotlib import path, transforms