Fix of "exponentional values generated as G1 F-1.95058e+006 causing problems"

https://github.com/prusa3d/Slic3r/issues/463
This commit is contained in:
bubnikv 2017-09-12 18:20:06 +02:00
parent 98408bbed0
commit 6b2b279889
3 changed files with 10 additions and 2 deletions

View file

@ -158,6 +158,7 @@ public:
BoundingBoxf3 bounding_box() const {
BoundingBoxf3 bbox;
if (! this->vertices_and_normals_interleaved.empty()) {
bbox.defined = true;
bbox.min.x = bbox.max.x = this->vertices_and_normals_interleaved[3];
bbox.min.y = bbox.max.y = this->vertices_and_normals_interleaved[4];
bbox.min.z = bbox.max.z = this->vertices_and_normals_interleaved[5];