Skip to content

Certain paths cause crashes #25

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions