From b5141755aef5712a8b7038ab92b229a6447b8828 Mon Sep 17 00:00:00 2001
From: Tristan Carrier Baudouin <tristan.carrier@uclouvain.be>
Date: Thu, 18 Oct 2012 16:09:07 +0000
Subject: [PATCH] Voronoi 3D

---
 Mesh/periodical.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Mesh/periodical.cpp b/Mesh/periodical.cpp
index ecdb76176b..914202ba9b 100644
--- a/Mesh/periodical.cpp
+++ b/Mesh/periodical.cpp
@@ -182,7 +182,6 @@ void voroMetal3D::execute(std::vector<SPoint3>& vertices)
   std::ofstream file("cells.pos");
   file << "View \"test\" {\n";
   std::ofstream file2("cells.geo");
-  file2 << "Coherence;\n";
   file2 << "c = 1.0;\n";
   for(i=0;i<pointers.size();i++){
 	obj = geo_cell();
@@ -289,6 +288,7 @@ void voroMetal3D::execute(std::vector<SPoint3>& vertices)
 	print_geo_volume(get_counter(),obj.face_loops2,file2);
 	increase_counter();
   }
+  file2 << "Coherence;\n";	
   file << "};\n";
 
   for(i=0;i<pointers.size();i++) delete pointers[i];
@@ -428,7 +428,8 @@ void voroMetal3D::correspondance(){
 		if(it1->second==0 && it2->second==0){
 		  it1->second = 1;
 		  it2->second = 1;
-		  file << faces[i]->tag() << " " << faces[j]->tag() << "\n";
+		  printf("%d %d\n",faces[i]->tag(),faces[j]->tag());
+		  //file << faces[i]->tag() << " " << faces[j]->tag() << "\n";
 		}
 	  }
 	}
-- 
GitLab