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

fix

parent 2173414d
No related branches found
No related tags found
No related merge requests found
...@@ -58,10 +58,11 @@ class triangulation { ...@@ -58,10 +58,11 @@ class triangulation {
int idNum; // number of identification, for hashing purposes int idNum; // number of identification, for hashing purposes
std::list<GEdge*> my_GEdges; std::list<GEdge*> my_GEdges;
//methods //methods
int genus(){ int genus()
return ( -vert.size() + ed2tri.size() - tri.size() + 2 - bord.size() )/2; {
return ( ed2tri.size() - vert.size() - tri.size() + 2 - bord.size() )/2;
} }
void assignVert() void assignVert()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment