/// <summary> /// Inserts this polygon into the supplied index, so long as it's not already /// marked as indexed. Then marks it as indexed. /// </summary> /// <param name="index">The spatial index to add to</param> /// <returns>True if entry added to index. False if this ring is already marked /// as indexed.</returns> internal bool AddToIndex(EditingIndex index) { if (IsIndexed) { return(false); } index.Add(this); IsIndexed = true; return(true); }