/// <summary> /// Simplify a collection of <c>TaggedLineString</c>s. /// </summary> /// <param name="taggedLines">The collection of lines to simplify.</param> public void Simplify(IList taggedLines) { for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext(); ) inputIndex.Add((TaggedLineString)i.Current); for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext(); ) { TaggedLineStringSimplifier tlss = new TaggedLineStringSimplifier(inputIndex, outputIndex); tlss.DistanceTolerance = distanceTolerance; tlss.Simplify((TaggedLineString)i.Current); } }
/// <summary> /// Simplify a collection of <c>TaggedLineString</c>s. /// </summary> /// <param name="taggedLines">The collection of lines to simplify.</param> public void Simplify(IList taggedLines) { for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext();) { inputIndex.Add((TaggedLineString)i.Current); } for (IEnumerator i = taggedLines.GetEnumerator(); i.MoveNext();) { TaggedLineStringSimplifier tlss = new TaggedLineStringSimplifier(inputIndex, outputIndex); tlss.DistanceTolerance = distanceTolerance; tlss.Simplify((TaggedLineString)i.Current); } }