private void FixEnterVertex(EnterFillerVertex enter, ref int i) { var prevI = i.PrevIndex(SupportPoints.Count); var nextI = i.NextIndex(SupportPoints.Count); if ((SupportPoints[prevI] is LineEndFillerVertex prevEnd && enter.Some(prevEnd)) || (SupportPoints[nextI] is LineEndFillerVertex nextEnd && enter.Some(nextEnd))) { SupportPoints.RemoveAt(i); i -= 1; }
public void Remove() { if (SupportPoints.Any()) { SupportPoints.RemoveAt(SupportPoints.Count - 1); } if (LineParts.Any()) { LineParts.RemoveAt(LineParts.Count - 1); } }