Skip to content
Snippets Groups Projects
Commit 0e6bee2d authored by Bertrand Thierry's avatar Bertrand Thierry
Browse files

[BoundaryAngles] fix: angles are negative and always inside the polygon

parent 1a7c8349
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,9 @@ PView *GMSH_BoundaryAnglesPlugin::execute(PView *v) ...@@ -140,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