I think it's a matter of scale.
I noticed that the curve length is relatively small so I thought maybe the missing lines are too short to be calculated and I scaled the curve in revit x10.
While it looks better like this there are still some missing lines, and it looks even more as they are too short to compute or something:
P.S. Pretty interesting results messing up with this definition: