Exemplo n.º 1
0
        /// <summary>
        /// Removes the point cloud.
        /// </summary>
        /// <param name="element_id">The element id of the point cloud</param>
        protected void RemovePointCloud(ElementId element_id)
        {
            if (m_pointclouds.Any(x => x.ElementId == element_id) == false)
            {
                return;
            }

            PointCloudBase pc = m_pointclouds.Find(x => x.ElementId == element_id);

            m_pointclouds.Remove(pc);
            pc.Delete();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Removes the point cloud.
        /// </summary>
        /// <param name="identifier">The name of the point cloud</param>
        protected void RemovePointCloud(string identifier)
        {
            if (m_pointclouds.Any(x => x.GetName() == identifier) == false)
            {
                return;
            }

            PointCloudBase pc = m_pointclouds.Find(x => x.GetName() == identifier);

            m_pointclouds.Remove(pc);
            pc.Delete();
        }