Beispiel #1
0
            private ThreeDSpace.Lines3D[] GetLines()
            {
                int j;
                int length = this._mesh.GetLength(0);
                int num    = this._mesh.GetLength(1);

                ThreeDSpace.Point3D[] points       = this.GetPoints();
                ThreeDSpace.Lines3D[] lines3DArray = new ThreeDSpace.Lines3D[(length - 1) * num + length * (num - 1)];
                int num1 = 0;

                for (int i = 0; i < num; i++)
                {
                    for (j = 0; j < length - 1; j++)
                    {
                        lines3DArray[num1].Start = points[i * length + j];
                        lines3DArray[num1].End   = points[i * length + j + 1];
                        num1++;
                    }
                    if (i < num - 1)
                    {
                        for (j = 0; j < length; j++)
                        {
                            lines3DArray[num1].Start = points[i * length + j];
                            lines3DArray[num1].End   = points[(i + 1) * length + j];
                            num1++;
                        }
                    }
                }
                return(lines3DArray);
            }
Beispiel #2
0
 private ThreeDSpace.Lines3D[] GetLines()
 {
     ThreeDSpace.Lines3D[] lines3D = new ThreeDSpace.Lines3D[] { new ThreeDSpace.Lines3D(this._from, this._to) };
     return(lines3D);
 }