mirror of https://github.com/CGAL/cgal
Fix picking with wireframe and points
This commit is contained in:
parent
bb25ae576a
commit
a60b15c90e
|
|
@ -598,6 +598,10 @@ void Scene::renderWireScene(const QList<Scene_interface::Item_id> &items,
|
|||
|| item.renderingMode() == PointsPlusNormals
|
||||
|| item.renderingMode() == GouraudPlusEdges)
|
||||
{
|
||||
if(with_names) {
|
||||
viewer->glClearDepthf(1.0);
|
||||
viewer->glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
}
|
||||
viewer->setGlPointSize(2.f);
|
||||
item.drawEdges(viewer);
|
||||
}
|
||||
|
|
@ -656,6 +660,10 @@ void Scene::renderPointScene(const QList<Scene_interface::Item_id> &items,
|
|||
(item.renderingMode() == PointsPlusNormals) ||
|
||||
(item.renderingMode() == ShadedPoints))
|
||||
{
|
||||
if(with_names) {
|
||||
viewer->glClearDepthf(1.0);
|
||||
viewer->glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
}
|
||||
viewer->setGlPointSize(3.0f);
|
||||
item.drawPoints(viewer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue