diff --git a/Polyhedron/demo/Polyhedron/Polyhedron_demo_edit_polyhedron_plugin.cpp b/Polyhedron/demo/Polyhedron/Polyhedron_demo_edit_polyhedron_plugin.cpp index f38363d40de..d27c8efa5ee 100644 --- a/Polyhedron/demo/Polyhedron/Polyhedron_demo_edit_polyhedron_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Polyhedron_demo_edit_polyhedron_plugin.cpp @@ -249,7 +249,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_Select_isolated_components_butto boost::optional minimum = edit_item->select_isolated_components(ui_widget.Threshold_size_spin_box->value()); if(minimum) { - ui_widget.Threshold_size_spin_box->setValue(*minimum); + ui_widget.Threshold_size_spin_box->setValue((int) *minimum); } } @@ -260,7 +260,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_Get_minimum_button_clicked() { boost::optional minimum = edit_item->get_minimum_isolated_component(); if(minimum) { - ui_widget.Threshold_size_spin_box->setValue(*minimum); + ui_widget.Threshold_size_spin_box->setValue((int) *minimum); } } diff --git a/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp b/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp index e84a31e7fc9..ce97906753d 100644 --- a/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.cpp @@ -158,7 +158,7 @@ void Scene_edit_polyhedron_item::draw_edges() const { glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(3, GL_DOUBLE, 0, positions.data()); - glDrawElements(GL_LINES, edges.size(), GL_UNSIGNED_INT, edges.data()); + glDrawElements(GL_LINES, (GLsizei) edges.size(), GL_UNSIGNED_INT, edges.data()); glDisableClientState(GL_VERTEX_ARRAY); if(rendering_mode == Wireframe) { @@ -171,7 +171,7 @@ void Scene_edit_polyhedron_item::draw() const { glVertexPointer(3, GL_DOUBLE, 0, positions.data()); glNormalPointer(GL_DOUBLE, 0, normals.data()); - glDrawElements(GL_TRIANGLES, tris.size(), GL_UNSIGNED_INT, tris.data()); + glDrawElements(GL_TRIANGLES, (GLsizei) tris.size(), GL_UNSIGNED_INT, tris.data()); glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_NORMAL_ARRAY); diff --git a/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.h b/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.h index 83305ce4a49..6878cf929c6 100644 --- a/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_edit_polyhedron_item.h @@ -263,8 +263,8 @@ private: Scene_polyhedron_item* poly_item; // For drawing std::vector positions; - std::vector tris; - std::vector edges; + std::vector tris; + std::vector edges; std::vector normals; Deform_mesh deform_mesh;