X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=moebius2.git;a=blobdiff_plain;f=energy.c;h=308aebfa3f890aea945bafc0aa38fc1feb18f9c8;hp=368abc4b29f78621cd707056a0ac99aec01fc726;hb=6df67fc7061e6fae41fec8c05b9e49e4e393c733;hpb=fab7a4f05e75dcccb7ed7ac6c963725a39db61ae diff --git a/energy.c b/energy.c index 368abc4..308aebf 100644 --- a/energy.c +++ b/energy.c @@ -46,15 +46,15 @@ static const CostContribution costs[]= { #endif #if XBITS==4 -#define STOP_EPSILON 1e-6 +#define STOP_EPSILON 1.2e-4 COST( 3e5, line_bending_cost) - COST( 10e2, edge_length_variation_cost) - COST( 9.0e1, rim_proximity_cost) // 5e1 is too much + COST( 10e3, edge_length_variation_cost) + COST( 9.0e3, 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) +// COST( 1e12, edge_angle_cost) #define EDGE_ANGLE_COST_CIRCCIRCRAT (0.5/1.3) COST( 1e18, noncircular_rim_cost) #endif