Place on bed improvements

- works with large meshes
- area discrimination takes into account scaling of the object
- planes are recalculated when some volume's type is changed (e.g. from a part to modifier mesh)
This commit is contained in:
Lukas Matena 2019-01-04 15:34:07 +01:00
parent 94becf120b
commit f7726b99a7
2 changed files with 63 additions and 47 deletions

View file

@ -403,6 +403,8 @@ private:
// This holds information to decide whether recalculation is necessary:
std::vector<Transform3d> m_volumes_matrices;
std::vector<ModelVolume::Type> m_volumes_types;
Vec3d m_first_instance_scale;
std::vector<PlaneData> m_planes;
mutable Vec3d m_starting_center;