Skip to content

[WIP] Polgon Centerline#165

Open
bcmertz wants to merge 49 commits into
mainfrom
centerline
Open

[WIP] Polgon Centerline#165
bcmertz wants to merge 49 commits into
mainfrom
centerline

Conversation

@bcmertz

@bcmertz bcmertz commented Jun 24, 2026

Copy link
Copy Markdown
Owner

#160

  • documentation
  • voronoi from delaunay functiom
  • edge point connections
  • test changed tools (especially unit behavior)

Comment thread src/helpers/geometry.py
def bbox(arr):
"""Find bounding box of polygon represented by numpy.ndarr `arr`"""
# rotate to get separate arrays of x and y coordinates
arr_rot = np.rot90(arr, axes=(0,1))

@bcmertz bcmertz Jul 9, 2026

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use np.hsplit instead to get x and y coords array

x_arr = np.hsplit(arr,1)[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant