Skip to content
Snippets Groups Projects
Commit 999b3ef3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Merge branch 'boundaryAngles' into 'master'

Boundary angles : 2 fix

See merge request gmsh/gmsh!322
parents fdf97608 0e6bee2d
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,6 @@ PView *GMSH_BoundaryAnglesPlugin::execute(PView *v) ...@@ -128,7 +128,6 @@ PView *GMSH_BoundaryAnglesPlugin::execute(PView *v)
} }
} }
// Handle last elements // Handle last elements
nodes[0].push_back(nodes[0][0]);
nodes[0].push_back(nodes[0][1]); nodes[0].push_back(nodes[0][1]);
// Compute angle at each point (mod 2pi) // Compute angle at each point (mod 2pi)
for(std::size_t i = 0; i < nodes[0].size() - 2; i++) { for(std::size_t i = 0; i < nodes[0].size() - 2; i++) {
...@@ -141,6 +140,9 @@ PView *GMSH_BoundaryAnglesPlugin::execute(PView *v) ...@@ -141,6 +140,9 @@ PView *GMSH_BoundaryAnglesPlugin::execute(PView *v)
data->SP.push_back(p2.x()); data->SP.push_back(p2.x());
data->SP.push_back(p2.y()); data->SP.push_back(p2.y());
data->SP.push_back(p2.z()); data->SP.push_back(p2.z());
// Choose the angle inside the polygon
if(a>0)
a = -(2*M_PI-a);
data->SP.push_back(a); data->SP.push_back(a);
data->NbSP++; data->NbSP++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment