Skip to content

Triangulation error depending on number of vertices of my polygon #186

@FelixNumworks

Description

@FelixNumworks

Hello !

I'm using the PixiJS framework that relies on earcut.
I opened an issue on the PixiJS repo about a triangulation error, and someone responded that the bug came from earcut.

Sorry I don't know a lot about earcut, so I'm not sure how to describe the bug, but here is a summary of it:

I have this polygon that I want to fill. It's composed of many lines of 10px:

Image

When I change the step from 10px to 5px, suddenly this bug appears:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions