mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 05:52:00 +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) ];
|
||||
}
|
||||
|
||||
# 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 {
|
||||
my ($self) = @_;
|
||||
|
||||
|
@ -329,11 +329,14 @@ PrintObject::has_support_material() const
|
||||
|| 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
|
||||
PrintObject::detect_surfaces_type()
|
||||
{
|
||||
// prerequisites
|
||||
// this->slice();
|
||||
this->slice();
|
||||
|
||||
if (this->state.is_done(posDetectSurfaces)) return;
|
||||
this->state.set_started(posDetectSurfaces);
|
||||
|
@ -126,7 +126,7 @@ _constant()
|
||||
void set_step_started(PrintObjectStep step)
|
||||
%code%{ THIS->state.set_started(step); %};
|
||||
|
||||
%name{_detect_surfaces_type} void detect_surfaces_type();
|
||||
void detect_surfaces_type();
|
||||
void process_external_surfaces();
|
||||
void bridge_over_infill();
|
||||
void combine_infill();
|
||||
|
Loading…
x
Reference in New Issue
Block a user