Пример #1
0
        public static bool TryFitLineToPoints(Point3d[] ptArray, out Line fitLine)
        {
            Plane p;

            GeoSolver.LinePlaneEstimate(new List <Point3d> (ptArray), out fitLine, out p);
            if (fitLine.IsValid)
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        public static bool TryFitLineToPoints(List <Point3d> points, out Line fitLine)
        {
            Plane p;

            GeoSolver.LinePlaneEstimate(points, out fitLine, out p);
            if (fitLine.IsValid)
            {
                return(true);
            }
            return(false);
        }