You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 use PolylineRegion.project to project the points to the centerline and using PolylineRegion.poinAlongBy for advancing the point, then offsetting the point perpendicular to the tangent of the centerline with the original projection distance.
The text was updated successfully, but these errors were encountered:
abol-karimi
changed the title
Curvilinear coordinates (feature request)
LinearElement.flowFrom accuracy
Jul 8, 2023
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.The text was updated successfully, but these errors were encountered: