mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fixed scaling of the object, if it was loaded too big.
Here the large object was not scaled uniformly, and the Z height of the bed was set incorrectly to one.
This commit is contained in:
parent
8bc04e640a
commit
bb5caf2e08
1 changed files with 2 additions and 3 deletions
|
@ -1526,9 +1526,8 @@ std::vector<size_t> Plater::priv::load_model_objects(const ModelObjectPtrs &mode
|
||||||
if (max_ratio > 10000) {
|
if (max_ratio > 10000) {
|
||||||
// the size of the object is too big -> this could lead to overflow when moving to clipper coordinates,
|
// the size of the object is too big -> this could lead to overflow when moving to clipper coordinates,
|
||||||
// so scale down the mesh
|
// so scale down the mesh
|
||||||
// const Vec3d inverse = ratio.cwiseInverse();
|
double inv = 1. / max_ratio;
|
||||||
// object->scale(inverse);
|
object->scale(Vec3d(inv, inv, inv));
|
||||||
object->scale(ratio.cwiseInverse());
|
|
||||||
scaled_down = true;
|
scaled_down = true;
|
||||||
} else if (max_ratio > 5) {
|
} else if (max_ratio > 5) {
|
||||||
const Vec3d inverse = ratio.cwiseInverse();
|
const Vec3d inverse = ratio.cwiseInverse();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue