Open kchanqvq opened 2 years ago
Some more issues:
polyline
breaks completely when I use (with-pen (make-pen :stroke +black+ :weight 2) ...)
, even without any transform.line
and (with-pen (make-pen :stroke +black+ :weight 2) ...)
looks fishy. I see visually inconsistent thickness when there are overlapping lines, could be the triangulation introduced some tiny offset so lines don't overlap exactly.Update: according to my partial understanding the issue comes from the treatment of collinear or overlapping line segment, which causes intersect-lines
to return abnormal values. Not sure about how to solve it...
Relevant article shared by @Gleefre: https://mattdesl.svbtle.com/drawing-lines-is-hard
Test program:
Problem:
the output from the
polyline
is wrong, it flies outside the screen.The output of the two (commented out in the snippet)
line
has different position. When composing larger algorithms I find geometry gets put in wrong positions everywhere.