diff -urN povray-3.50c/src/isosurf.cpp povray-3.50c-ww/src/isosurf.cpp
--- povray-3.50c/src/isosurf.cpp 2003-01-07 02:08:27.000000000 +0100
+++ povray-3.50c-ww/src/isosurf.cpp 2003-05-21 22:03:36.000000000 +0200
@@ -811,8 +811,8 @@
(((prop <= 0.95) || (diff <= -0.1)) && (mginfo->max_gradient < 10.0)))
{
WarningAt(0, fn->filename, fn->line,
- "The maximum gradient found was %0.3f, but max_gradient of the\n"
- "isosurface was set to %0.3f. The isosurface may contain holes!\n"
+ "The maximum gradient found was %0.3g, but max_gradient of the\n"
+ "isosurface was set to %0.3g. The isosurface may contain holes!\n"
"Adjust max_gradient to get a proper rendering of the isosurface.",
(float)(mginfo->gradient),
(float)(mginfo->max_gradient));
@@ -820,8 +820,8 @@
else if((diff >= 10.0) || ((prop >= 1.1) && (diff >= 0.5)))
{
WarningAt(0, fn->filename, fn->line,
- "The maximum gradient found was %0.3f, but max_gradient of\n"
- "the isosurface was set to %0.3f. Adjust max_gradient to\n"
+ "The maximum gradient found was %0.3g, but max_gradient of\n"
+ "the isosurface was set to %0.3g. Adjust max_gradient to\n"
"get a faster rendering of the isosurface.",
(float)(mginfo->gradient),
(float)(mginfo->max_gradient));
@@ -838,8 +838,8 @@
mginfo->eval_cnt = max(mginfo->eval_cnt, 1.0); // make sure it won't be zero
WarningAt(0, fn->filename, fn->line,
- "Evaluate found a maximum gradient of %0.3f and an average\n"
- "gradient of %0.3f. The maximum gradient variation was %0.3f.\n",
+ "Evaluate found a maximum gradient of %0.3g and an average\n"
+ "gradient of %0.3g. The maximum gradient variation was %0.3f.\n",
(float)(mginfo->eval_max),
(float)(mginfo->eval_gradient_sum / mginfo->eval_cnt),
(float)(mginfo->eval_var));
@@ -849,9 +849,9 @@
diff = max(diff, 1.0); // prevent contradicting output
Debug_Info("It is recommended to adjust the parameters of 'evaluate' to:\n"
- "First parameter less than %0.3f\n"
- "Second parameter less than %0.3f and greater than 1.0\n"
- "Third parameter greater than %0.3f and less than 1.0\n",
+ "First parameter less than %0.3g\n"
+ "Second parameter less than %0.3g and greater than 1.0\n"
+ "Third parameter greater than %0.3g and less than 1.0\n",
(float)(mginfo->eval_max),
(float)(diff),
(float)(1.0 / diff));