diff options
Diffstat (limited to 'src/sample.cpp')
-rw-r--r-- | src/sample.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sample.cpp b/src/sample.cpp index b8af937..488d20d 100644 --- a/src/sample.cpp +++ b/src/sample.cpp @@ -16,25 +16,25 @@ void sample::pre_fracture(const network& n) { sample_file << "<|"; sample_file << "\"vr\"->{"; for (const graph::vertex &v : n.G.vertices) { - sample_file << "{" << v.r.x << "," << v.r.y << "},"; + sample_file <<std::fixed<< "{" << v.r.x << "," << v.r.y << "},"; } sample_file << "},\"vp\"->{"; for (const graph::vertex &v : n.G.vertices) { sample_file << "{"; for (const graph::coordinate &r : v.polygon) { - sample_file << "{" << r.x << "," << r.y << "},"; + sample_file <<std::fixed<< "{" << r.x << "," << r.y << "},"; } sample_file << "},"; } sample_file << "},\"ur\"->{"; for (const graph::vertex &v : n.G.dual_vertices) { - sample_file << "{" << v.r.x << "," << v.r.y << "},"; + sample_file <<std::fixed<< "{" << v.r.x << "," << v.r.y << "},"; } sample_file << "},\"up\"->{"; for (const graph::vertex &v : n.G.dual_vertices) { sample_file << "{"; for (const graph::coordinate &r : v.polygon) { - sample_file << "{" << r.x << "," << r.y << "},"; + sample_file <<std::fixed<< "{" << r.x << "," << r.y << "},"; } sample_file << "},"; } |