Example #1
0
        public void RemoveVertex(int objectId)
        {
            bool bUpdate;

            try
            {
                _lockVr.EnterWriteLock();

                if (_rVertexTree.NodeCount == 0)
                {
                    return;
                }

                bUpdate = _rVertexTree.RemoveVertex(objectId);
            }
            finally
            {
                _lockVr.ExitWriteLock();
            }
            if (bUpdate)
            {
                Update(new Rectangle(0, 0, Width, Height));
            }
        }