public void DeattachConnectionCrvNode(INodePoint node) { ConnectionCrvNodeToRectBaseNodePair existNode = m_allConnectionCrvNodes.Find( curNode => curNode.connectionCrvNode.GetOriginal() == node.GetOriginal() ); if (existNode.connectionCrvNode != null) { m_allConnectionCrvNodes.Remove(existNode); } }
public void AttachConnectionCrvNode(INodePoint node) { ConnectionCrvNodeToRectBaseNodePair existNode = m_allConnectionCrvNodes.Find( curNode => curNode.connectionCrvNode.GetOriginal() == node.GetOriginal() ); if (existNode.connectionCrvNode == null) { m_allConnectionCrvNodes.Add(new ConnectionCrvNodeToRectBaseNodePair(node, GetVertexIdFromPoint(node.GetPosition()))); } }