diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-06-30 19:22:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-30 19:22:33 +0200 |
| commit | 8d5ef5b6635b5b84f12409b535114853954680d1 (patch) | |
| tree | c963bf0e1ddc4ee584c08b4014232f0f067ae512 /lib/utils/geometry.py | |
| parent | 725281f075f8d40a68427733f377983b6f7c607b (diff) | |
Fixes (#1703)
* guide line position
* use direction from line to shape
* optimize intersection detection
* fix flapack elf
* handle weird guide lines better
* update starting point for self crossing (multiple) fills
* ripple: fixes and non circular join style
* avoid jumps in ripple stitch
* fallback only necessary if shape does not intersect grating
* make valid may return a polygon
* add profiling
* Stitch.__init__ didn't work right and was super slow
* shrink or grow to multipolygon
Co-authored-by: Lex Neva
Diffstat (limited to 'lib/utils/geometry.py')
| -rw-r--r-- | lib/utils/geometry.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils/geometry.py b/lib/utils/geometry.py index f5ba4ad8..30457749 100644 --- a/lib/utils/geometry.py +++ b/lib/utils/geometry.py @@ -129,6 +129,10 @@ class Point: def from_shapely_point(cls, point): return cls(point.x, point.y) + @classmethod + def from_tuple(cls, point): + return cls(point[0], point[1]) + def __json__(self): return vars(self) |
