public void Dispose() { if (poolCluster != null) { poolCluster.Dispose(); poolCluster = null; } }
public PositionCluster3D(Data data) { this.data = data; points = new Queue <Point> (); clusters = new List <Cluster> (); clusterAdded = new List <Cluster>(); clusterRemoved = new List <Cluster>(); poolCluster = new Pooling.MemoryPool <Cluster>( () => new Cluster(), c => c.Reset(), c => { }); }