Open abol-karimi opened 1 year ago
I definitely agree that the accuracy can be lacking in LinearElement.flowFrom
(we use a forward Euler approximation as noted in the docstring). A short term solution may be to try using a smaller stepSize
, though we'd also be happy to review a PR with a better implementation if you or someone else would like to contribute one.
The built-in function
LinearElement.flowFrom
does not have a good accuracy, especially for negative distances. I suggest implementing it using curvilinear coordinates. One quick way is to usePolylineRegion.project
to project the points to the centerline and usingPolylineRegion.poinAlongBy
for advancing the point, then offsetting the point perpendicular to the tangent of the centerline with the original projection distance.