Handle self-intersecting paths


Self-intersecting paths would be misclassified as convex if all the
turns were in the same direction, such as for a pentagram. A true convex
path changes direction only twice along each axis.

Pick-to: 6.11
Change-Id: Ida673547e2b6f89f8899e4b56ec5c96c07b5bbb5
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit0439364cac027eca9390fed7773d5c5c4dc6d00c
parentcb1c58f48d114d1a574b8e3068fc415aa07cb366
authorPaul Olav Tvete <paul.tvete@qt.io>
committerPaul Olav Tvete <paul.tvete@qt.io>
commit timeTue, 3 Feb 2026 15:33:09 +0100