Thanks for the answer, I fixed it by moving the vertices with some good old math.

And I recently already bumped into the ProfiledContourGeometry function of yours, it looks great and it will highly likely be a great tool for future me, thanks in advance for sharing that function! <3