mirror of https://github.com/CGAL/cgal
Fix the scene scaling
This commit is contained in:
parent
b8d5c5e89a
commit
5ab054b84d
|
|
@ -2030,6 +2030,7 @@ void Viewer::scaleScene()
|
|||
CGAL::qglviewer::Vec vmin(((float)bbox.xmin()+offset().x)*d->scaler.x(), ((float)bbox.ymin()+offset().y)*d->scaler.y(), ((float)bbox.zmin()+offset().z)*d->scaler.z()),
|
||||
vmax(((float)bbox.xmax()+offset().x)*d->scaler.x(), ((float)bbox.ymax()+offset().y)*d->scaler.y(), ((float)bbox.zmax()+offset().z)*d->scaler.z());
|
||||
camera()->setPivotPoint((vmin+vmax)*0.5);
|
||||
camera()->setSceneBoundingBox(vmin, vmax);
|
||||
camera()->fitBoundingBox(vmin, vmax);
|
||||
d->scene_scaling = !d->scene_scaling;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue