Skip to content

StopIteration Exception in earclip_triangulation #3570

Closed
@VerboseOutput

Description

@VerboseOutput

new_ring = next(filter(lambda ring: ring[0] <= j < ring[-1], detached_rings))

if len(detached_rings) == 1 it's possible for j == ring[-1]. In this case filter will return nothing and next will throw an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions