Ejemplo n.º 1
0
        protected internal override xyz Cross(LineType ViewLine)
        {
            double vz = ViewLine.Direction.z;

            if (ViewLine.Direction.z == 0)
            {
                return(new xyz(0, 0, 0));
            }
            xyzArray A = Curve.ToxyzArray();

            double LineLam = -1;
            double di      = A.Distance(ViewLine, 2 * Snapdist, out Lam, out LineLam);

            if (di <= 2 * Snapdist)
            {
                Lam /= Curve.Resolution;
                return(Curve.Value(Lam));
            }
            else
            {
                Lam = -1;
            }
            xyz Result = new xyz(0, 0, 0);

            new Plane(new xyz(0, 0, 0), new xyz(0, 0, 1)).Cross(ViewLine, out LineLam, out Result);
            return(Result);
        }