#if XBITS==4
#define STOP_EPSILON 5e-3
- COST( 3e3, vertex_displacement_cost)
- COST( 3e3, vertex_edgewise_displ_cost)
+ COST( 3e3, vertex_displacement_cost) // NB this is probably wrong now
+ COST( 3e3, vertex_edgewise_displ_cost) // we have changed the power
COST( 0.2e3, rim_proximity_cost)
COST( 1e4, rim_twist_cost)
COST( 1e12, noncircular_rim_cost)
#endif
#if XBITS==5
-#define STOP_EPSILON 1.2e-4
- COST( 3e3, vertex_displacement_cost)
- COST( 3e3, vertex_edgewise_displ_cost)
+#define STOP_EPSILON 1e-5
+ COST( 3e4, vertex_displacement_cost)
+ COST( 3e4, vertex_edgewise_displ_cost)
COST( 2e-1, rim_proximity_cost)
COST( 3e3, rim_twist_cost)
COST( 1e12, noncircular_rim_cost)
double vertex_displacement_cost(const Vertices vertices, int section) {
const double inv_lambda= 1.0/1; //2;
- const double delta= 4;
+ const double delta= 6;
int si,e,qi,ri;
double total_cost= 0;
double vertex_edgewise_displ_cost(const Vertices vertices, int section) {
const double inv_lambda= 1.0/1; //2;
- const double delta= 4;
+ const double delta= 6;
int pi,e,qi,ri,si, k;
double m[D3];