X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=moebius2.git;a=blobdiff_plain;f=energy.c;h=3c1731a8e971c304c2d40bf222b741ad89011b4a;hp=2f8a854cde076656b02c3c0799cc2fbdd5634cf1;hb=HEAD;hpb=c343db120c3480b7b907cfc22cdd59edd3f01388 diff --git a/energy.c b/energy.c index 2f8a854..3c1731a 100644 --- a/energy.c +++ b/energy.c @@ -53,7 +53,7 @@ static const CostContribution costs[]= { #define STOP_EPSILON 5e-3 COST( 3e4, vertex_displacement_cost) // NB this is probably wrong now COST( 3e4, vertex_edgewise_displ_cost) // we have changed the power - COST( 2e2, rim_proximity_cost) + COST( 0.2e3, rim_proximity_cost) COST( 1e4, rim_twist_cost) COST( 1e12, noncircular_rim_cost) COST( 10e1, nonequilateral_triangles_cost) @@ -63,7 +63,7 @@ static const CostContribution costs[]= { #endif #if XBITS==5 -#define STOP_EPSILON 7e-4 +#define STOP_EPSILON 1e-5 COST( 3e4, vertex_displacement_cost) COST( 3e4, vertex_edgewise_displ_cost) COST( 2e-1, rim_proximity_cost) @@ -76,11 +76,11 @@ static const CostContribution costs[]= { #endif #if XBITS==6 -#define STOP_EPSILON 1.2e-4 - COST( 3e4, vertex_displacement_cost) - COST( 3e4, vertex_edgewise_displ_cost) - COST( 2e-1, rim_proximity_cost) - COST( 1e3, rim_twist_cost) +#define STOP_EPSILON 1e-4 + COST( 3e5, vertex_displacement_cost) + COST( 3e5, vertex_edgewise_displ_cost) + COST( 3e-2, rim_proximity_cost) + COST( 1e4, rim_twist_cost) COST( 1e12, noncircular_rim_cost) COST( 10e1, nonequilateral_triangles_cost) // COST( 1e1, small_triangles_cost)