Skip to content

Infinite loop on triangulation  #8

@lgarczyn

Description

@lgarczyn

Hello, thanks for the great library. However even simple attempts give me systematic infinite loops.

                Vector2[] data = new []
                {
                    new Vector2(-1, -1),
                    new Vector2(1, -1),
                    new Vector2(1, 1),
                    new Vector2(-1, 1),
                };

                IntVector[] iPoints = iGeom.Int(data);
                PathLayout pathLayout = new PathLayout(0, data.Length, false);

                PlainShape shape = new(iPoints, new[] {pathLayout}, Allocator.Temp);

                Mesh mesh = shape.DelaunayTriangulate(iGeom);

I feel like some kind of general safety loop counter would help for debugging these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions