Commit f736bfad authored by Marcel Campen's avatar Marcel Campen

Removed genus display for non-manifold or multi-component meshes



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15733 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 12ae7b72
......@@ -356,7 +356,12 @@ void InfoMeshObjectPlugin::printMeshInfo( MeshT* _mesh , int _id, unsigned int _
chi += _mesh->n_faces(); // chi = Euler characteristic
// chi + n_holes = 2(n_components - genus) => genus = n_components - (chi + n_holes)/2;
float genus = compo_count - 0.5*(chi + boundary_count);
info_->genus->setText( QString::number(genus) );
if(compo_count == 1 && boundary_count == 0)
info_->genus->setText( QString::number(genus) );
else if(compo_count != 1)
info_->genus->setText( "(multiple components)" );
else
info_->genus->setText( "(not manifold)" );
// Coordinates
typename MeshT::VertexIter v_it;
......
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