//--------------------------------------------------------------------------------------------------

        public static bool Solve(Sketch sketch, Dictionary <int, Pnt2d> tempPoints, bool precise)
        {
            var solver = new SketchConstraintSolver();
            var result = solver._Solve(tempPoints, sketch.Segments, sketch.Constraints, precise) == Result.Success;

            //Debug.WriteLine("Sketch constraints " + (result ? "solved successful." : "have no solution."));
            return(result);
        }