Use distance instead of distance squared for subdividing polygon edges.