triangulation_boundary, an Octave code which starts with a triangulation of a simple shape, and determines the triangle edges that form the boundary, and a sequence of nodes that trace the boundary.
The information on this web page is distributed under the MIT license.
triangulation_boundary is available in a MATLAB version and an Octave version.