Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain paths cause crashes #25

Open
ghost opened this issue Apr 2, 2021 · 1 comment
Open

Certain paths cause crashes #25

ghost opened this issue Apr 2, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 2, 2021

This is less clear-cut than #24, but I'm still getting crashes with some fairly benign-looking patterns:

poly_point_isect.isect_polygon([[0. , 0. ],
           [1. , 0. ],
           [0. , 1. ],
           [0. , 0. ],
           [0.5, 0. ],
           [1. , 1. ]])  # crashes

The following crash when using np.float32 arithmetic but are fine using np.float64 or simply float:

poly_point_isect.isect_polygon(np.array([
           [0.    , 0.    ],
           [0.5   , 0.    ],
           [1.    , 0.1163]], dtype=np.float32))  # crashes

poly_point_isect.isect_polygon(np.array([[1, 0], [0.27344, 0], [0, 0.17]], dtype=np.float32))  # crashes
@nosy-b
Copy link

nosy-b commented Apr 26, 2021

Same :)

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

No branches or pull requests

1 participant