From 1cbea07d63d338a30385569f5b43d9e075d07a7b Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 7 Apr 2022 21:44:45 -0700 Subject: [PATCH] fix axis ordering --- snarled/poly.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snarled/poly.py b/snarled/poly.py index 172a709..223905f 100644 --- a/snarled/poly.py +++ b/snarled/poly.py @@ -129,10 +129,10 @@ def poly_edges_intersect( xf1 = a_next[:, 0, None] yf1 = a_next[:, 1, None] - xi2 = poly_b[:, 0, None] - yi2 = poly_b[:, 1, None] - xf2 = b_next[:, 0, None] - yf2 = b_next[:, 1, None] + xi2 = poly_b[None, :, 0] + yi2 = poly_b[None, :, 1] + xf2 = b_next[None, :, 0] + yf2 = b_next[None, :, 1] # Perform calculation dxi = xi1 - xi2