Exemple #1
0
        public PointF Render(ThreeDSpace.Point3D p)
        {
            PointF y = new Point();

            ThreeDSpace.Point3D point3D  = this.viewpoint;
            ThreeDSpace.Point3D point3D1 = this.screen;
            y.Y = (p.Y - point3D.Y) * point3D1.Z / (p.Z - point3D.Z);
            y.X = (p.X - point3D.X) * point3D1.Z / (p.Z - point3D.Z);
            return(y);
        }
Exemple #2
0
            private ThreeDSpace.Point3D[] GetPoints()
            {
                int length = this._mesh.GetLength(0);
                int num    = this._mesh.GetLength(1);

                ThreeDSpace.Point3D[] point3D = new ThreeDSpace.Point3D[length * num];
                int   num1    = 0;
                float single  = 1f / (float)(length - 1);
                float single1 = 1f / (float)(num - 1);

                for (int i = 0; i < length; i++)
                {
                    for (int j = 0; j < num; j++)
                    {
                        point3D[num1] = new ThreeDSpace.Point3D(single * (float)i * this._scale, single1 * (float)j * this._scale, this._mesh[i, j] * this._scale, this._meshColor);
                        num1++;
                    }
                }
                return(point3D);
            }
Exemple #3
0
 public LineObject(ThreeDSpace.Point3D from, ThreeDSpace.Point3D to)
 {
     this._from = from;
     this._to   = to;
 }
Exemple #4
0
 public Lines3D(ThreeDSpace.Point3D start, ThreeDSpace.Point3D end)
 {
     this.Start = start;
     this.End   = end;
 }