internal void ApplyClusterPositions_() { com.epl.geometry.Point2D cluster_pt = new com.epl.geometry.Point2D(); // move vertices to the clustered positions. for (int list = m_clusters.GetFirstList(); list != -1; list = m_clusters.GetNextList(list)) { int node = m_clusters.GetFirst(list); System.Diagnostics.Debug.Assert((node != -1)); int vertex = m_clusters.GetElement(node); m_shape.GetXY(vertex, cluster_pt); for (node = m_clusters.GetNext(node); node != -1; node = m_clusters.GetNext(node)) { int vertex_1 = m_clusters.GetElement(node); m_shape.SetXY(vertex_1, cluster_pt); } } }
// Returns any existing element from the hash table. Throws if the table is // empty. public int GetAnyElement() { return(m_lists.GetFirstElement(m_lists.GetFirstList())); }