Skip to content
Snippets Groups Projects
Commit 8a4709a7 authored by Tristan Carrier Baudouin's avatar Tristan Carrier Baudouin
Browse files

hexahedra

parent c6e37882
No related branches found
No related tags found
No related merge requests found
...@@ -385,8 +385,8 @@ void Filler::treat_region(GRegion* gr){ ...@@ -385,8 +385,8 @@ void Filler::treat_region(GRegion* gr){
boundary_vertices.push_back(*it); boundary_vertices.push_back(*it);
} }
} }
std::ofstream file("nodes.pos"); //std::ofstream file("nodes.pos");
file << "View \"test\" {\n"; //file << "View \"test\" {\n";
for(i=0;i<boundary_vertices.size();i++){ for(i=0;i<boundary_vertices.size();i++){
x = boundary_vertices[i]->x(); x = boundary_vertices[i]->x();
...@@ -397,7 +397,7 @@ void Filler::treat_region(GRegion* gr){ ...@@ -397,7 +397,7 @@ void Filler::treat_region(GRegion* gr){
compute_parameters(node,gr); compute_parameters(node,gr);
rtree.Insert(node->min,node->max,node); rtree.Insert(node->min,node->max,node);
fifo.push(node); fifo.push(node);
print_node(node,file); //print_node(node,file);
} }
count = 1; count = 1;
...@@ -449,7 +449,7 @@ void Filler::treat_region(GRegion* gr){ ...@@ -449,7 +449,7 @@ void Filler::treat_region(GRegion* gr){
count++; count++;
} }
file << "};\n"; //file << "};\n";
int option = CTX::instance()->mesh.algo3d; int option = CTX::instance()->mesh.algo3d;
CTX::instance()->mesh.algo3d = ALGO_3D_DELAUNAY; CTX::instance()->mesh.algo3d = ALGO_3D_DELAUNAY;
...@@ -475,7 +475,7 @@ void Filler::treat_region(GRegion* gr){ ...@@ -475,7 +475,7 @@ void Filler::treat_region(GRegion* gr){
Metric Filler::get_metric(double x,double y,double z){ Metric Filler::get_metric(double x,double y,double z){
Metric m; Metric m;
Matrix m2; Matrix m2;
if(CTX::instance()->mesh.smoothCrossField) if(!CTX::instance()->mesh.smoothCrossField)
m2 = Frame_field::search(x,y,z); m2 = Frame_field::search(x,y,z);
else else
m2 = Frame_field::findNearestCross(x,y,z); m2 = Frame_field::findNearestCross(x,y,z);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment