mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 05:02:01 +08:00
Ported PrintObject::detect_surfaces_type() to C++
This commit is contained in:
parent
f2e2c9aa71
commit
1cc8a8d3e3
@ -34,18 +34,6 @@ sub support_layers {
|
|||||||
return [ map $self->get_support_layer($_), 0..($self->support_layer_count - 1) ];
|
return [ map $self->get_support_layer($_), 0..($self->support_layer_count - 1) ];
|
||||||
}
|
}
|
||||||
|
|
||||||
# This will assign a type (top/bottom/internal) to $layerm->slices
|
|
||||||
# and transform $layerm->fill_surfaces from expolygon
|
|
||||||
# to typed top/bottom/internal surfaces;
|
|
||||||
sub detect_surfaces_type {
|
|
||||||
my ($self) = @_;
|
|
||||||
|
|
||||||
# prerequisites
|
|
||||||
$self->slice;
|
|
||||||
|
|
||||||
$self->_detect_surfaces_type;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub prepare_infill {
|
sub prepare_infill {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
|
|
||||||
|
@ -329,11 +329,14 @@ PrintObject::has_support_material() const
|
|||||||
|| this->config.support_material_enforce_layers > 0;
|
|| this->config.support_material_enforce_layers > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This will assign a type (top/bottom/internal) to layerm->slices
|
||||||
|
// and transform layerm->fill_surfaces from expolygon
|
||||||
|
// to typed top/bottom/internal surfaces;
|
||||||
void
|
void
|
||||||
PrintObject::detect_surfaces_type()
|
PrintObject::detect_surfaces_type()
|
||||||
{
|
{
|
||||||
// prerequisites
|
// prerequisites
|
||||||
// this->slice();
|
this->slice();
|
||||||
|
|
||||||
if (this->state.is_done(posDetectSurfaces)) return;
|
if (this->state.is_done(posDetectSurfaces)) return;
|
||||||
this->state.set_started(posDetectSurfaces);
|
this->state.set_started(posDetectSurfaces);
|
||||||
|
@ -126,7 +126,7 @@ _constant()
|
|||||||
void set_step_started(PrintObjectStep step)
|
void set_step_started(PrintObjectStep step)
|
||||||
%code%{ THIS->state.set_started(step); %};
|
%code%{ THIS->state.set_started(step); %};
|
||||||
|
|
||||||
%name{_detect_surfaces_type} void detect_surfaces_type();
|
void detect_surfaces_type();
|
||||||
void process_external_surfaces();
|
void process_external_surfaces();
|
||||||
void bridge_over_infill();
|
void bridge_over_infill();
|
||||||
void combine_infill();
|
void combine_infill();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user