예제 #1
0
        public void DeattachConnectionCrvNode(INodePoint node)
        {
            ConnectionCrvNodeToRectBaseNodePair existNode = m_allConnectionCrvNodes.Find(
                curNode => curNode.connectionCrvNode.GetOriginal() == node.GetOriginal()
                );

            if (existNode.connectionCrvNode != null)
            {
                m_allConnectionCrvNodes.Remove(existNode);
            }
        }
예제 #2
0
        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())));
            }
        }