Skip to content

Commit

Permalink
Bug Fix: plotSequential fix
Browse files Browse the repository at this point in the history
Prevents visualising an invalid vector at the end of contours scans
  • Loading branch information
drlukeparry committed Mar 4, 2022
1 parent 3bce788 commit c46ae70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyslm/visualise.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def plotSequential(layer: Layer,
if isinstance(geom, HatchGeometry):
coords = geom.coords.reshape(-1, 2, 2)
elif isinstance(geom, ContourGeometry):
coords = np.hstack([geom.coords, np.roll(geom.coords, -1, axis=0)]).reshape(-1,2,2)
coords = np.hstack([geom.coords, np.roll(geom.coords, -1, axis=0)])[:-1,:].reshape(-1,2,2)

scanVectors.append(coords)

Expand Down

0 comments on commit c46ae70

Please sign in to comment.