I have been using this code to map the interior of the Koch snowflake. This is my most successful, but the algorithm seems to fail on very similar polygons.

If I make my snowflake slightly spikier, it just fails entirely:

And if I iterate the snowflake one more time, it pretty much always fails.
This is not, I believe, a fundamental problem with the Zipper algorithm, as I was able to render a higher iteration snowflake using the FORTRAN implementation that Marshall has provided. It's a lot harder to work with his implementation though, so I had hoped that I'd be able to use it in Julia instead.

I don't suppose you have any ideas what might be going wrong?
I have been using this code to map the interior of the Koch snowflake. This is my most successful, but the algorithm seems to fail on very similar polygons.
If I make my snowflake slightly spikier, it just fails entirely:
And if I iterate the snowflake one more time, it pretty much always fails.
This is not, I believe, a fundamental problem with the Zipper algorithm, as I was able to render a higher iteration snowflake using the FORTRAN implementation that Marshall has provided. It's a lot harder to work with his implementation though, so I had hoped that I'd be able to use it in Julia instead.
I don't suppose you have any ideas what might be going wrong?