Gui/Mesh: [skip ci] make sure object fits into canvas

This commit is contained in:
wmayer
2020-09-08 15:12:09 +02:00
parent 10aba9c616
commit ce0e0ca143
2 changed files with 10 additions and 15 deletions

View File

@@ -630,7 +630,7 @@ void Gui::SoFCDB::writeX3D(SoVRMLGroup* node, bool exportViewpoints, std::ostrea
SbSphere bs;
bs.circumscribe(bbox);
const SbVec3f& cnt = bs.getCenter();
float dist = 2.0f * bs.getRadius();
float dist = 2.4f * bs.getRadius();
float dist3 = 0.577350f * dist; // sqrt(1/3) * dist
if (exportViewpoints) {