Bug fixes; nyf

This commit is contained in:
Guillaume Damiand 2018-11-26 22:06:13 +01:00
parent 8297e2b849
commit 9c3faed5c5
4 changed files with 10 additions and 10 deletions

View File

@ -966,7 +966,7 @@ protected:
return text;
}
private:
protected:
bool m_draw_vertices;
bool m_draw_edges;
bool m_draw_faces;

View File

@ -78,7 +78,7 @@ MainWindow::MainWindow (QWidget * parent) : CGAL::Qt::DemosMainWindow (parent),
QObject::connect(&dialogmesh, SIGNAL(accepted()),
this, SLOT(onCreateMeshOk()));
// this->viewer->setScene(&scene);
this->viewer->setScene(&scene);
connect_actions ();
this->addAboutDemo (":/cgal/help/about_Linear_cell_complex_3.html");

View File

@ -47,12 +47,12 @@ Viewer::~Viewer()
void Viewer::sceneChanged()
{
Base::compute_elements();
this->camera()->setSceneBoundingBox(CGAL::qglviewer::Vec(bb.xmin(),
bb.ymin(),
bb.zmin()),
CGAL::qglviewer::Vec(bb.xmax(),
bb.ymax(),
bb.zmax()));
this->camera()->setSceneBoundingBox(CGAL::qglviewer::Vec(m_bounding_box.xmin(),
m_bounding_box.ymin(),
m_bounding_box.zmin()),
CGAL::qglviewer::Vec(m_bounding_box.xmax(),
m_bounding_box.ymax(),
m_bounding_box.zmax()));
if (m_previous_scene_empty)
this->showEntireScene();
else

View File

@ -60,7 +60,7 @@ public:
public:
// void draw();
// virtual void init();
// virtual void init();
void keyPressEvent(QKeyEvent *e);
@ -118,7 +118,7 @@ private:
// QOpenGLShaderProgram rendering_program;
// QOpenGLShaderProgram rendering_program_p_l;
CGAL::Bbox_3 bb;
// CGAL::Bbox_3 bb;
};
#endif