Ejemplo n.º 1
0
        /// <summary>
        /// KDTree triangulation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripTriangulate_Click(object sender, EventArgs e)
        {
            if (this.glControl1.GLrender.RenderableObjects.Count > 0)
            {
                PointCloud pc = this.glControl1.GLrender.RenderableObjects[0].PointCloud;
                //pc.Triangulate_KDTree(10);
                pc.Triangulate25D(0.01f);

                RemoveAllPointClouds();
                this.glControl1.GLrender.ClearAllObjects();
                ShowPointCloud(pc);
            }


            return;
        }