mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 04:49:00 +08:00
SLAPrintConfig needs other defaults
This commit is contained in:
parent
eb86fb6c65
commit
6a1a3fc94c
@ -549,6 +549,14 @@ class SLAPrintConfig
|
|||||||
|
|
||||||
SLAPrintConfig() : StaticPrintConfig() {
|
SLAPrintConfig() : StaticPrintConfig() {
|
||||||
this->set_defaults();
|
this->set_defaults();
|
||||||
|
|
||||||
|
// override some defaults
|
||||||
|
this->fill_density.value = 100;
|
||||||
|
this->fill_pattern.value = ipGrid;
|
||||||
|
this->infill_extrusion_width.value = 0.5;
|
||||||
|
this->infill_extrusion_width.percent = false;
|
||||||
|
this->perimeter_extrusion_width.value = 1;
|
||||||
|
this->perimeter_extrusion_width.percent = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual ConfigOption* optptr(const t_config_option_key &opt_key, bool create = false) {
|
virtual ConfigOption* optptr(const t_config_option_key &opt_key, bool create = false) {
|
||||||
|
@ -55,12 +55,11 @@ SLAPrint::slice()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// generate infill
|
// generate infill
|
||||||
const float infill_spacing = this->config.get_abs_value("infill_extrusion_width", this->config.layer_height.value);
|
if (this->config.fill_density < 100) {
|
||||||
if (this->config.fill_density < 100 && infill_spacing > 0) {
|
|
||||||
std::auto_ptr<Fill> fill(Fill::new_from_type(this->config.fill_pattern.value));
|
std::auto_ptr<Fill> fill(Fill::new_from_type(this->config.fill_pattern.value));
|
||||||
fill->bounding_box.merge(Point::new_scale(bb.min.x, bb.min.y));
|
fill->bounding_box.merge(Point::new_scale(bb.min.x, bb.min.y));
|
||||||
fill->bounding_box.merge(Point::new_scale(bb.max.x, bb.max.y));
|
fill->bounding_box.merge(Point::new_scale(bb.max.x, bb.max.y));
|
||||||
fill->spacing = infill_spacing;
|
fill->spacing = this->config.get_abs_value("infill_extrusion_width", this->config.layer_height.value);
|
||||||
fill->angle = Geometry::deg2rad(this->config.fill_angle.value);
|
fill->angle = Geometry::deg2rad(this->config.fill_angle.value);
|
||||||
fill->density = this->config.fill_density.value/100;
|
fill->density = this->config.fill_density.value/100;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user