panosz / alpha_shapes

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

shaper.optimize() get very small value #16

Closed jjasoncool closed 1 month ago

jjasoncool commented 1 month ago

When I using the points cloud output_points.txt

from alpha_shapes import Alpha_Shaper

shaper = Alpha_Shaper(self.points, normalize=True)
alpha_opt, shape = shaper.optimize()
print(f"Alpha shape optimize value:{alpha_opt}")

I will get Alpha shape optimize value:-1e-10

圖片

panosz commented 1 month ago

Thank you for this issue @jjasoncool

It should be fixed now, although I am a bit confused about the figure you attached. When I plot the points you have uploaded I get the following image