Skip to content

Infinite loop from triangulatePolygon2 #2

@joshuahhh

Description

@joshuahhh

The following code hangs in an infinite loop:

const cga = require("cga")
cga.triangulatePolygon2([[392,114],[216,179],[159,295],[215,267]])

As far as I know, this is a pretty normal polygon:

screen shot 2018-07-02 at 2 24 50 am

I'm not sure what's going on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions