mirror of https://github.com/CGAL/cgal
Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main'
This commit is contained in:
commit
8da5ed6680
|
|
@ -1480,10 +1480,15 @@ protected:
|
||||||
if(!m_scene.empty())
|
if(!m_scene.empty())
|
||||||
{
|
{
|
||||||
auto& bbox=m_scene.bounding_box();
|
auto& bbox=m_scene.bounding_box();
|
||||||
double d=CGAL::sqrt(CGAL::squared_distance
|
double d=is_two_dimensional()
|
||||||
|
?2.5
|
||||||
|
: CGAL::sqrt(CGAL::squared_distance
|
||||||
(Local_point(bbox.xmin(), bbox.ymin(), bbox.zmin()),
|
(Local_point(bbox.xmin(), bbox.ymin(), bbox.zmin()),
|
||||||
Local_point(bbox.xmax(), bbox.ymax(), bbox.zmax())));
|
Local_point(bbox.xmax(), bbox.ymax(), bbox.zmax())));
|
||||||
// std::cout<<"Length of the diagonal: "<<d<<std::endl;
|
// std::cout<<"Length of the diagonal: "<<d<<std::endl;
|
||||||
|
// std::cout<<"width: "<< this->width() <<std::endl;
|
||||||
|
// std::cout<<"height: "<< this->height() <<std::endl;
|
||||||
|
|
||||||
m_size_vertices=1.5*d;
|
m_size_vertices=1.5*d;
|
||||||
m_size_edges=d;
|
m_size_edges=d;
|
||||||
m_size_rays=m_size_edges;
|
m_size_rays=m_size_edges;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue