This may be a better place to test debug first to avoid the call to gen::triangle_degenerate if you don't care