mirror of https://github.com/CGAL/cgal
Merge pull request #1764 from lrineau/Polyhedron-demo_fix_polylines_menu-lrineau
Polyhedron demo, polylines items: fix the radius displayed in the menu
This commit is contained in:
commit
376b848caa
|
|
@ -435,7 +435,7 @@ void Scene_polylines_item::invalidateOpenGLBuffers()
|
|||
|
||||
void Scene_polylines_item::change_corner_radii() {
|
||||
bool ok = true;
|
||||
double proposed_radius = d->spheres_drawn_square_radius;
|
||||
double proposed_radius = std::sqrt(d->spheres_drawn_square_radius);
|
||||
if(proposed_radius == 0) {
|
||||
CGAL::Three::Scene_interface::Bbox b = bbox();
|
||||
proposed_radius = (std::max)(b.xmax() - b.xmin(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue