Commit 73778408 authored by Jan Möbius's avatar Jan Möbius

Don't output dihedral angles for no or one face

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9359 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 15a58352
......@@ -271,9 +271,17 @@ void InfoPlugin::printMeshInfo( MeshT* _mesh , int _id, unsigned int _face, ACG:
info_->angleMean->setText( "-" );
info_->angleMax->setText( QString::number(maxI,'f') );
info_->dihedralMin->setText( QString::number(minD,'f') );
info_->dihedralMean->setText( QString::number( sumD / (_mesh->n_faces()*3),'f' ) );
info_->dihedralMax->setText( QString::number(maxD,'f') );
// Only one face or no face -> don't output angles
if ( _mesh->n_faces() > 1 ) {
info_->dihedralMin->setText( QString::number(minD,'f') );
info_->dihedralMean->setText( QString::number( sumD / (_mesh->n_faces()*3),'f' ) );
info_->dihedralMax->setText( QString::number(maxD,'f') );
} else {
info_->dihedralMin->setText( "-" );
info_->dihedralMean->setText( "-" );
info_->dihedralMax->setText( "-" );
}
typename MeshT::FaceHandle fh = _mesh->face_handle(_face);
......
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