jdugge/xy2sn

Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system.
1.2K Downloads
Updated 17 Aug 2015

Matlab functions to transform between cartesian (xy) and curvilinear orthogonal (sn) coordinates using a spline representation of a centerline.

Cite As

Juernjakob Dugge (2024). jdugge/xy2sn (https://github.com/jdugge/xy2sn), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: distance2curve, arclength, interparc

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.3.0.0

The s-coordinate is no longer normalised, but uses distance units. This is consistent with Merwade's description of the method. (Thanks to Chad Greene for raising this issue)

1.2.0.0

Dramatically increased performance by using a piecewise linear approximation for the smoothed centerline.

1.1.0.0

Added check for a bug in "distance2curve.m"

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.