Esempio n. 1
0
        public void PrintVertices3D()
        {
            cVertex temp = head;

            System.Diagnostics.Debug.WriteLine("Printing pointCloud...");
            if (head != null)
            {
                do
                {
                    temp.PrintVertex3D();
                    temp = temp.NextVertex;
                } while (temp != head);
            }
        }
Esempio n. 2
0
        public void ReadVertices_SetIndexInPointCloud()
        {
            cVertex v    = Vertices.head;
            int     vnum = -1;

            do
            {
                vnum++;
                v.IndexInPointCloud = vnum;
                if ((Math.Abs(v.Point.X) > SAFE) || (Math.Abs(v.Point.Y) > SAFE) ||
                    (Math.Abs(v.Point.Z) > SAFE))
                {
                    System.Diagnostics.Debug.WriteLine("Coordinate of vertex below might be too large...");
                    v.PrintVertex3D(vnum);
                }
                v = v.NextVertex;
            } while (v != Vertices.head);
        }