panosz / alpha_shapes

A Python library for working with alpha shapes
MIT License
45 stars 9 forks source link

How to get the x,y coordinate of the alpha_shape boundary #4

Closed QJieWang closed 11 months ago

QJieWang commented 1 year ago

have reviewed plot_alpha_shape function, but it seems that the variable alpha_shape does not provide a direct way to access the x and y coordinates of the boundary points. I find this inconvenient and would like to know if there is any solution available.

panosz commented 1 year ago

@QJieWang I think you are right. Having a direct way to access the boundary (edges and vertices) would probably be convenient for some use cases. I guess a quick solution would be something along the lines of what is done at the plot_alpha_shape function. Would you like to attempt to write it?

panosz commented 11 months ago

The `boundary.get_boundaries" method should do the job.