Skip to content

Commit

Permalink
use plate model manager in 01-GettingStarted.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchin committed Nov 8, 2023
1 parent 19e2f2f commit d72493e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 52 deletions.
98 changes: 47 additions & 51 deletions Notebooks/01-GettingStarted.ipynb

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion gplately/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,13 @@ def _fill_edge_polygon(geometry, boundary, min_distance=None):
else:
seg0 = substring(boundary, d0, 1, normalized=True)
seg1 = substring(boundary, 0, d1, normalized=True)
boundary_segment = linemerge([seg0, seg1])

if isinstance(seg0, Point) and isinstance(seg1, LineString):
boundary_segment = seg1
elif isinstance(seg1, Point) and isinstance(seg0, LineString):
boundary_segment = seg0
else:
boundary_segment = linemerge([seg0, seg1])

if i == -1:
out.append(segment_before)
Expand Down

0 comments on commit d72493e

Please sign in to comment.