private List <List <Vector2> > Simplify(List <List <Vector2> > chains)
        {
            var fc     = new Mapper.Curves.FitCurves();
            var result = new List <List <Vector2> >();

            foreach (var chain in chains)
            {
                var temp = Mapper.Curves.Douglas.DouglasPeuckerReduction(chain, 8.0);
                if (temp != null && temp.Count > 1)
                {
                    result.Add(temp);
                    //result.Add(BezierToPoints(fc.FitCurve(temp.ToArray(), 10.0)));
                }
            }
            return(result);
        }
 private List<List<Vector2>> Simplify(List<List<Vector2>> chains)
 {
     var fc = new Mapper.Curves.FitCurves();
     var result = new List<List<Vector2>>();
     foreach (var chain in chains) {
         var temp = Mapper.Curves.Douglas.DouglasPeuckerReduction(chain, 8.0);
         if (temp != null && temp.Count > 1)
         {
             result.Add(temp);
             //result.Add(BezierToPoints(fc.FitCurve(temp.ToArray(), 10.0)));
         }
     }
     return result;
 }