Finite Element Analysis Toolbox
ORDER_BOUNDARIES Determine connected boundaries in order.
[ BDR_ORDER ] = ORDER_BOUNDARIES( GEOM ) Determines groups of connected boundary segments in two-dimensions. Returns a cell array BDR_ORDER for each geometry object with groups of connected boundary indexes. A negative index indicates that the orientation of the boundary is reversed with respect to boundary edges.