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); }
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); }