Ejemplo n.º 1
0
        public void ReportGeometryTo(StringBuilder sb)
        {
            int i   = 0;
            var pEn = Positions.GetEnumerator();
            var nEn = Normals.GetEnumerator();

            while (pEn.MoveNext() && nEn.MoveNext())
            {
                var p = pEn.Current;
                var n = nEn.Current;
                sb.AppendFormat("{0} pos: {1} nrm:{2}\r\n", i++, p, n);
            }

            i = 0;
            sb.AppendLine("Triangles:");
            foreach (var item in TriangleIndices)
            {
                sb.AppendFormat("{0}, ", item);
                i++;
                if (i % 3 == 0)
                {
                    sb.AppendLine();
                }
            }
        }
Ejemplo n.º 2
0
        public void ResetCurrent()
        {
            CurrentPosition = Normals.GetEnumerator();

            CurrentPosition.MoveNext();

            Current = CurrentPosition.Current;
        }