Add documentation.

This commit is contained in:
Remco Burema 2021-11-07 22:26:34 +01:00
parent 6dff2bebb5
commit 4f20dc4c5d
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 20 additions and 2 deletions

View file

@ -57,6 +57,12 @@ class Layer:
return result
def lineMeshCumulativeTypeChangeCount(self, path: int) -> int:
""" The number of line-type changes in this layer up until #path.
See also LayerPolygon::cumulativeTypeChangeCounts.
:param path: The path-index up until which the cumulative changes are counted.
:return: The cumulative number of line-type changes up until this path.
"""
result = 0
for polygon in self._polygons:
num_counts = len(polygon.cumulativeTypeChangeCounts)