From: Ian Jackson Date: Sat, 7 Apr 2018 22:41:34 +0000 (+0100) Subject: curveopt: wip X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=71f288c5d00262c60e27766f2e7d90cf6dc54030;p=moebius3.git curveopt: wip Signed-off-by: Ian Jackson --- diff --git a/curveopt.py b/curveopt.py index b0e725c..5ebe166 100644 --- a/curveopt.py +++ b/curveopt.py @@ -24,6 +24,7 @@ class OptimisedCurve(): db = DiscreteBezier(cp, nt, bezier_constructor=BezierSegment) fc_input = map(db.point_at_it, range(0, nt+1)) + dbg(repr(fc_input)) for end in (False,True): ei = nt if end else 0 diff --git a/findcurve.c b/findcurve.c index a8dfc46..0b13a21 100644 --- a/findcurve.c +++ b/findcurve.c @@ -42,23 +42,37 @@ static void prepare(double X[] /* startpoint */) { PREPARE; } +#define DEBUG + static double cb_Efunc(void *xp) { const double *X = xp; DECLARE_F_G; CALCULATE_F_G; - printf(" Efunc "); - printcore(X); +#ifdef DEBUG + int i,j; + printf(" Efunc\n"); + for (j=0; j<3; j++) { + for (i=0; i