[cgma-dev] r5560 - cgm/trunk/geom/Cholla

jvporter at wisc.edu jvporter at wisc.edu
Mon Jun 11 14:14:43 CDT 2012


Author: jvporter
Date: 2012-06-11 14:14:43 -0500 (Mon, 11 Jun 2012)
New Revision: 5560

Modified:
   cgm/trunk/geom/Cholla/Cholla.cpp
Log:
Don't use %lf in printf statements.


Modified: cgm/trunk/geom/Cholla/Cholla.cpp
===================================================================
--- cgm/trunk/geom/Cholla/Cholla.cpp	2012-06-09 14:44:11 UTC (rev 5559)
+++ cgm/trunk/geom/Cholla/Cholla.cpp	2012-06-11 19:14:43 UTC (rev 5560)
@@ -434,11 +434,11 @@
     {
       int kk;
       for(kk=0; kk<3; kk++);
-      fprintf(fp, "(%d) %.6lf %.6lf %.6lf\n", edge_ptr->id(), v0.x(), v0.y(), v0.z()); 
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", control_points[0].x(), control_points[0].y(), control_points[0].z());
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", control_points[1].x(), control_points[1].y(), control_points[1].z());
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", control_points[2].x(), control_points[2].y(), control_points[2].z());
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", v1.x(), v1.y(), v1.z()); 
+      fprintf(fp, "(%d) %.6f %.6f %.6f\n", edge_ptr->id(), v0.x(), v0.y(), v0.z()); 
+      fprintf(fp, "    %.6f %.6f %.6f\n", control_points[0].x(), control_points[0].y(), control_points[0].z());
+      fprintf(fp, "    %.6f %.6f %.6f\n", control_points[1].x(), control_points[1].y(), control_points[1].z());
+      fprintf(fp, "    %.6f %.6f %.6f\n", control_points[2].x(), control_points[2].y(), control_points[2].z());
+      fprintf(fp, "    %.6f %.6f %.6f\n", v1.x(), v1.y(), v1.z()); 
     }
     index = 6 * ii; 
     t0 = control_points[0] - v0;
@@ -890,11 +890,11 @@
     {
       int kk;
       for(kk=0; kk<3; kk++);
-      fprintf(fp, "(%d) %.6lf %.6lf %.6lf\n", edge_ptr->id(), P0.x(), P0.y(), P0.z()); 
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", Pi[0].x(), Pi[0].y(), Pi[0].z());
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", Pi[1].x(), Pi[1].y(), Pi[1].z());
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", Pi[2].x(), Pi[2].y(), Pi[2].z());
-      fprintf(fp, "    %.6lf %.6lf %.6lf\n", P1.x(), P1.y(), P1.z()); 
+      fprintf(fp, "(%d) %.6f %.6f %.6f\n", edge_ptr->id(), P0.x(), P0.y(), P0.z()); 
+      fprintf(fp, "    %.6f %.6f %.6f\n", Pi[0].x(), Pi[0].y(), Pi[0].z());
+      fprintf(fp, "    %.6f %.6f %.6f\n", Pi[1].x(), Pi[1].y(), Pi[1].z());
+      fprintf(fp, "    %.6f %.6f %.6f\n", Pi[2].x(), Pi[2].y(), Pi[2].z());
+      fprintf(fp, "    %.6f %.6f %.6f\n", P1.x(), P1.y(), P1.z()); 
     }
     edge_ptr->control_points( Pi, 4 );
   }















More information about the cgma-dev mailing list