Ported PrintObject::detect_surfaces_type() to C++

This commit is contained in:
Alessandro Ranellucci 2018-11-26 21:17:54 +01:00
parent f2e2c9aa71
commit 1cc8a8d3e3
3 changed files with 5 additions and 14 deletions

View File

@ -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) = @_;

View File

@ -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);

View File

@ -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();