Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.9k stars 404 forks source link

Segfault on Empty Shape #180

Closed lamarrr closed 1 year ago

lamarrr commented 1 year ago

I tried using msdfgen in my project and even the smallest test case segfaulted.

The culprit is msdfgen\core\ShapeDistanceFinder.hpp:12

    typename ContourCombiner::EdgeSelectorType::EdgeCache *edgeCache = &shapeEdgeCache[0];