private static Line[] GetEdges(Size outputTextureSize, IEnumerable<TextureAtlasNode> placedNodes)
 {
     var edges = placedNodes.SelectMany(x => x.GetBounds().GetEdges()).ToList();
     edges.AddRange(outputTextureSize.GetEdges()); // include overall output boundary
     return edges.Distinct().ToArray();
 }