Commit 69f0909a authored by Marcel Campen's avatar Marcel Campen

Fixed unsigned int problem in genus computation


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8862 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 36f746fd
......@@ -124,7 +124,7 @@ void InfoPlugin::printMeshInfo( MeshT* _mesh , int _id, unsigned int _face, ACG:
// Boundaries
info_->boundaries->setText( locale.toString(MeshInfo::boundaryCount(_mesh)) );
// Genus
int genus = 1 - (_mesh->n_vertices() - _mesh->n_edges() + _mesh->n_faces() ) / 2;
int genus = (2 - _mesh->n_vertices() + _mesh->n_edges() - _mesh->n_faces()) / 2;
info_->genus->setText( QString::number(genus) );
// Coordinates
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment