From: Ian Jackson Date: Sun, 28 Sep 2008 12:52:00 +0000 (+0100) Subject: fake plastic imitation weights for XBITS==5 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=30d841cc8a4e2ae0bec21b58e3c73057e4286f06;p=moebius2.git fake plastic imitation weights for XBITS==5 --- diff --git a/energy.c b/energy.c index f6a4c29..c009067 100644 --- a/energy.c +++ b/energy.c @@ -59,6 +59,20 @@ static const CostContribution costs[]= { COST( 1e18, noncircular_rim_cost) #endif +#if XBITS==5 +#define STOP_EPSILON 1e-6 + COST( 3e5, line_bending_cost) + COST( 10e2, edge_length_variation_cost) + COST( 9.0e1, rim_proximity_cost) // 5e1 is too much + // 2.5e1 is too little + // 0.2e1 grows compared to previous ? + // 0.6e0 shrinks compared to previous ? + + COST( 1e12, edge_angle_cost) + #define EDGE_ANGLE_COST_CIRCCIRCRAT (0.5/1.3) + COST( 1e18, noncircular_rim_cost) +#endif + }; const double edge_angle_cost_circcircrat= EDGE_ANGLE_COST_CIRCCIRCRAT;