Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.InvalidOperationException when calling SkeletonBuilder.Build method #6

Open
YITWEE opened this issue Mar 9, 2023 · 1 comment

Comments

@YITWEE
Copy link

YITWEE commented Mar 9, 2023

I'm using the StraightSkeletonNet library, and when I call the SkeletonBuilder.Build(List polygon, List<List> holes) method, I get a System.InvalidOperationException.

image

Here's the code I'm using as input:

var polygon = new List<Vector2d>()
{
    new Vector2d(45940, 50540),
    new Vector2d(0, 50540),
    new Vector2d(0, 0),
    new Vector2d(45940, 0)
};

var holes = new List<List<Vector2d>>()
{
    new List<Vector2d>()
    {
        new Vector2d(11900, 12670),
        new Vector2d(11900, 37220),
        new Vector2d(33520, 37220),
        new Vector2d(33520, 12670)
    }
};

var result = SkeletonBuilder.Build(polygon, holes);

What could be causing this exception? Are there any solutions or suggestions that could help me resolve this problem?

Thank you!

@reinterpretcat
Copy link
Owner

Hi!

Hard to say what is the reason: I haven't worked on the project for years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants