cgal/Polyhedron/demo/Polyhedron.old/MainWindow_inside_out.cpp

27 lines
551 B
C++

#include <QApplication>
#include "MainWindow.h"
#include "Scene.h"
#include "Polyhedron_type.h"
void MainWindow::on_actionInsideOut_triggered()
{
if(onePolygonIsSelected())
{
// wait cursor
QApplication::setOverrideCursor(Qt::WaitCursor);
// get selected polyhedron
int index = getSelectedPolygonIndex();
Polyhedron* pMesh = scene->polyhedron(index);
// inside out
pMesh->inside_out();
// update scene
scene->polyhedronChanged(index);
// default cursor
QApplication::restoreOverrideCursor();
}
}