mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
ENH: add the time limit and triangle limit for cli slicing
Change-Id: I80d6e58dca6648427dbe4cfbc01eabdedfa79f52
This commit is contained in:
parent
6fab32c98b
commit
662453f419
3 changed files with 52 additions and 1 deletions
|
|
@ -4582,6 +4582,20 @@ CLIActionsConfigDef::CLIActionsConfigDef()
|
|||
def->cli = "uptodate";
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
|
||||
def = this->add("mtcpp", coInt);
|
||||
def->label = L("mtcpp");
|
||||
def->tooltip = L("max triangle count per plate for slicing.");
|
||||
def->cli = "mtcpp";
|
||||
def->cli_params = "count";
|
||||
def->set_default_value(new ConfigOptionInt(1000000));
|
||||
|
||||
def = this->add("mstpp", coInt);
|
||||
def->label = L("mstpp");
|
||||
def->tooltip = L("max slicing time per plate in seconds.");
|
||||
def->cli = "mstpp";
|
||||
def->cli_params = "time";
|
||||
def->set_default_value(new ConfigOptionInt(300));
|
||||
|
||||
/*def = this->add("help_fff", coBool);
|
||||
def->label = L("Help (FFF options)");
|
||||
def->tooltip = L("Show the full list of print/G-code configuration options.");
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@
|
|||
#define CLI_IMPORT_CACHE_NOT_FOUND -55
|
||||
#define CLI_IMPORT_CACHE_DATA_CAN_NOT_USE -56
|
||||
#define CLI_IMPORT_CACHE_LOAD_FAILED -57
|
||||
|
||||
#define CLI_SLICING_TIME_EXCEEDS_LIMIT -58
|
||||
#define CLI_TRIANGLE_COUNT_EXCEEDS_LIMIT -59
|
||||
|
||||
#define CLI_SLICING_ERROR -100
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue