Compare commits
2 commits
0503ceb725
...
7f7431f018
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f7431f018 | |||
| a82c555cda |
1 changed files with 5 additions and 5 deletions
|
|
@ -1717,8 +1717,8 @@ class Polygon(Record, GeometryMixin):
|
||||||
repetition: repetition_t | None
|
repetition: repetition_t | None
|
||||||
point_list: point_list_t | None
|
point_list: point_list_t | None
|
||||||
"""
|
"""
|
||||||
List of offsets from the initial vertex (x, y) to the remaining
|
List of offsets between consecutive vertices, starting from the initial
|
||||||
vertices, `[[dx0, dy0], [dx1, dy1], ...]`.
|
vertex (x, y): `[[dx0, dy0], [dx1, dy1], ...]`.
|
||||||
The list is an implicitly closed path, vertices are [int, int].
|
The list is an implicitly closed path, vertices are [int, int].
|
||||||
The initial vertex is located at (x, y) and is not represented in `point_list`.
|
The initial vertex is located at (x, y) and is not represented in `point_list`.
|
||||||
`None` means reuse modal.
|
`None` means reuse modal.
|
||||||
|
|
@ -1744,7 +1744,7 @@ class Polygon(Record, GeometryMixin):
|
||||||
self.point_list = point_list
|
self.point_list = point_list
|
||||||
self.properties = [] if properties is None else properties
|
self.properties = [] if properties is None else properties
|
||||||
|
|
||||||
if point_list is not None and len(point_list) < 3:
|
if point_list is not None and len(point_list) < 2:
|
||||||
warn('Polygon with < 3 points', stacklevel=2)
|
warn('Polygon with < 3 points', stacklevel=2)
|
||||||
|
|
||||||
def get_point_list(self) -> point_list_t:
|
def get_point_list(self) -> point_list_t:
|
||||||
|
|
@ -1827,8 +1827,8 @@ class Path(Record, GeometryMixin):
|
||||||
repetition: repetition_t | None = None
|
repetition: repetition_t | None = None
|
||||||
point_list: point_list_t | None = None
|
point_list: point_list_t | None = None
|
||||||
"""
|
"""
|
||||||
List of offsets from the initial vertex (x, y) to the remaining vertices,
|
List of offsets between consecutive vertices, starting from the initial
|
||||||
`[[dx0, dy0], [dx1, dy1], ...]`.
|
vertex (x, y): `[[dx0, dy0], [dx1, dy1], ...]`.
|
||||||
The initial vertex is located at (x, y) and is not represented in `point_list`.
|
The initial vertex is located at (x, y) and is not represented in `point_list`.
|
||||||
Offsets are [int, int]; `None` means reuse modal.
|
Offsets are [int, int]; `None` means reuse modal.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue