Fixed merge conflict: Added ModelInstance ID to the SLAPrintObject Instance

This commit is contained in:
bubnikv 2018-11-13 19:22:05 +01:00
parent fedc78dc91
commit 3858fecf0c
2 changed files with 7 additions and 5 deletions

View file

@ -40,12 +40,14 @@ public:
const Transform3d& trafo() const { return m_trafo; }
struct Instance {
ModelID instance_id;
// Slic3r::Point objects in scaled G-code coordinates
Instance(ModelID instance_id, const Point &shift, float rotation) : instance_id(instance_id), shift(shift), rotation(rotation) {}
// ID of the corresponding ModelInstance.
ModelID instance_id;
// Slic3r::Point objects in scaled G-code coordinates
Point shift;
// Rotation along the Z axis, in radians.
float rotation;
};
};
const std::vector<Instance>& instances() const { return m_instances; }
// Get a support mesh centered around origin in XY, and with zero rotation around Z applied.