mirror of https://github.com/CGAL/cgal
Merge pull request #2960 from maxGimeno/Demo-Fix_bbox_after_deformation-GF
Polyhedron demo: Fix Bbox computation in facegraph_items
This commit is contained in:
commit
1a858e94e3
|
|
@ -396,6 +396,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::dock_widget_visibility_changed(bool
|
|||
Scene_facegraph_item* item = convert_to_plain_facegraph(i, edit_item);
|
||||
item->setRenderingMode(last_RM);
|
||||
updateSelectionItems(item);
|
||||
item->itemChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1414,7 +1414,7 @@ invalidateOpenGLBuffers()
|
|||
d->init();
|
||||
Base::invalidateOpenGLBuffers();
|
||||
are_buffers_filled = false;
|
||||
|
||||
is_bbox_computed = false;
|
||||
d->invalidate_stats();
|
||||
d->killIds();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -921,7 +921,7 @@ void Scene_surface_mesh_item::compute_bbox()const
|
|||
}
|
||||
_bbox = Bbox(bbox.xmin(),bbox.ymin(),bbox.zmin(),
|
||||
bbox.xmax(),bbox.ymax(),bbox.zmax());
|
||||
|
||||
is_bbox_computed = true;
|
||||
}
|
||||
|
||||
void Scene_surface_mesh_item::itemAboutToBeDestroyed(Scene_item *item)
|
||||
|
|
@ -1109,6 +1109,7 @@ void Scene_surface_mesh_item::invalidateOpenGLBuffers()
|
|||
d->smesh_->collect_garbage();
|
||||
are_buffers_filled = false;
|
||||
d->invalidate_stats();
|
||||
is_bbox_computed = false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue