mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Ported Layer::maker_perimeters() to XS
This commit is contained in:
parent
3a9cf91f83
commit
4f8a18bbad
8 changed files with 114 additions and 83 deletions
|
@ -7,6 +7,18 @@
|
|||
|
||||
namespace Slic3r {
|
||||
|
||||
bool
|
||||
operator== (const ConfigOption &a, const ConfigOption &b)
|
||||
{
|
||||
return a.serialize().compare(b.serialize()) == 0;
|
||||
}
|
||||
|
||||
bool
|
||||
operator!= (const ConfigOption &a, const ConfigOption &b)
|
||||
{
|
||||
return !(a == b);
|
||||
}
|
||||
|
||||
bool
|
||||
ConfigBase::has(const t_config_option_key &opt_key) {
|
||||
return (this->option(opt_key, false) != NULL);
|
||||
|
@ -52,8 +64,8 @@ ConfigBase::diff(ConfigBase &other) {
|
|||
}
|
||||
|
||||
std::string
|
||||
ConfigBase::serialize(const t_config_option_key &opt_key) {
|
||||
ConfigOption* opt = this->option(opt_key);
|
||||
ConfigBase::serialize(const t_config_option_key &opt_key) const {
|
||||
const ConfigOption* opt = this->option(opt_key);
|
||||
assert(opt != NULL);
|
||||
return opt->serialize();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue