ENH: CLI: add support of rotate

JIRA: STUDIO-4183
Change-Id: I091cc3142ce867d2ac75ba27b3cb2e4e569c9681
(cherry picked from commit 7eab9ba9f22dc8f00e13caf27c7cf72b8675562a)
This commit is contained in:
lane.wei 2023-08-29 21:15:49 +08:00 committed by Lane.Wei
parent 4eea84f24a
commit c00caad244
2 changed files with 44 additions and 24 deletions

View file

@ -5094,12 +5094,12 @@ CLITransformConfigDef::CLITransformConfigDef()
def->cli_params = "count";
def->set_default_value(new ConfigOptionInt(1));
/*def = this->add("ensure_on_bed", coBool);
def = this->add("ensure_on_bed", coBool);
def->label = L("Ensure on bed");
def->tooltip = L("Lift the object above the bed when it is partially below. Enabled by default, use --no-ensure-on-bed to disable.");
def->set_default_value(new ConfigOptionBool(true));
def->tooltip = L("Lift the object above the bed when it is partially below. Disabled by default");
def->set_default_value(new ConfigOptionBool(false));
def = this->add("copy", coInt);
/*def = this->add("copy", coInt);
def->label = L("Copy");
def->tooltip =L("Duplicate copies of model");
def->min = 1;
@ -5119,18 +5119,18 @@ CLITransformConfigDef::CLITransformConfigDef()
def->tooltip = L("Convert the units of model");
def->set_default_value(new ConfigOptionBool(false));
def = this->add("orient", coBool);
def->label = L("Orient");
def->tooltip = L("Orient the model");
def = this->add("orient", coInt);
def->label = L("Orient Options");
def->tooltip = L("Orient options: 0-disable, 1-enable, others-auto");
//def->cli = "orient|o";
def->set_default_value(new ConfigOptionBool(false));
def->set_default_value(new ConfigOptionInt(0));
/*def = this->add("repair", coBool);
def->label = L("Repair");
def->tooltip = L("Repair the model's meshes if it is non-manifold mesh");
def->set_default_value(new ConfigOptionBool(false));*/
/*def = this->add("rotate", coFloat);
def = this->add("rotate", coFloat);
def->label = L("Rotate");
def->tooltip = L("Rotation angle around the Z axis in degrees.");
def->set_default_value(new ConfigOptionFloat(0));
@ -5143,7 +5143,7 @@ CLITransformConfigDef::CLITransformConfigDef()
def = this->add("rotate_y", coFloat);
def->label = L("Rotate around Y");
def->tooltip = L("Rotation angle around the Y axis in degrees.");
def->set_default_value(new ConfigOptionFloat(0));*/
def->set_default_value(new ConfigOptionFloat(0));
def = this->add("scale", coFloat);
def->label = L("Scale");