mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-27 00:24:00 -06:00
Allow rotation of multiple selected items. Disable auto positioning
This commit is contained in:
parent
804758dfed
commit
649dfca8d6
6 changed files with 99 additions and 44 deletions
|
@ -19,7 +19,9 @@ class RotoptimizeJob : public PlaterJob
|
|||
|
||||
static inline const FindMethod Methods[] = {
|
||||
{ L("Best misalignment"), sla::find_best_misalignment_rotation },
|
||||
{ L("Least supports"), sla::find_least_supports_rotation }
|
||||
{ L("Least supports"), sla::find_least_supports_rotation },
|
||||
// Just a min area bounding box that is done for all methods anyway.
|
||||
{ L("Z axis only"), nullptr }
|
||||
};
|
||||
|
||||
size_t m_method_id = 0;
|
||||
|
@ -27,6 +29,15 @@ class RotoptimizeJob : public PlaterJob
|
|||
|
||||
DynamicPrintConfig m_default_print_cfg;
|
||||
|
||||
struct ObjRot
|
||||
{
|
||||
size_t idx;
|
||||
std::optional<Vec2d> rot;
|
||||
ObjRot(size_t id): idx{id}, rot{} {}
|
||||
};
|
||||
|
||||
std::vector<ObjRot> m_selected_object_ids;
|
||||
|
||||
protected:
|
||||
|
||||
void prepare() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue