Delaunay.Halfedge.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (edgeListLeftNeighbor != null || edgeListRightNeighbor != null)
            {
                // still in EdgeList
                return;
            }
            if (nextInPriorityQueue != null)
            {
                // still in PriorityQueue
                return;
            }
            edge = null;
            leftRight = null;
            vertex = null;
            _pool.Add(this);
        }

Usage Example

コード例 #1
0
		public void Remove (Halfedge halfEdge)
		{
			Halfedge previous;
			int removalBucket = Bucket (halfEdge);
			
			if (halfEdge.vertex != null) {
				previous = _hash [removalBucket];
				while (previous.nextInPriorityQueue != halfEdge) {
					previous = previous.nextInPriorityQueue;
				}
				previous.nextInPriorityQueue = halfEdge.nextInPriorityQueue;
				_count--;
				halfEdge.vertex = null;
				halfEdge.nextInPriorityQueue = null;
				halfEdge.Dispose ();
			}
		}
All Usage Examples Of Delaunay.Halfedge::Dispose