Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-03-08 16:29:23 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-03-15 11:55:56 +0300
commit8e27e355c2bb8450459d6f031cddab968bd67a3f (patch)
tree2c2164b3822d66d542f6831c8c155e29da411145 /xs
parentceea9de8b8b1d4b35bdd1180051033680c405ba1 (diff)
Fixing unit tests.
Diffstat (limited to 'xs')
-rw-r--r--xs/lib/Slic3r/XS.pm3
-rw-r--r--xs/xsp/Flow.xsp21
-rw-r--r--xs/xsp/Layer.xsp4
-rw-r--r--xs/xsp/Print.xsp3
4 files changed, 9 insertions, 22 deletions
diff --git a/xs/lib/Slic3r/XS.pm b/xs/lib/Slic3r/XS.pm
index fa4dde43a..6d3bf35cf 100644
--- a/xs/lib/Slic3r/XS.pm
+++ b/xs/lib/Slic3r/XS.pm
@@ -158,7 +158,6 @@ sub new {
my $self = $class->_new(
@args{qw(width height nozzle_diameter)},
);
- $self->set_bridge($args{bridge} // 0);
return $self;
}
@@ -166,7 +165,7 @@ sub new_from_width {
my ($class, %args) = @_;
return $class->_new_from_width(
- @args{qw(role width nozzle_diameter layer_height bridge_flow_ratio)},
+ @args{qw(role width nozzle_diameter layer_height)},
);
}
diff --git a/xs/xsp/Flow.xsp b/xs/xsp/Flow.xsp
index b57df5e37..6962085d5 100644
--- a/xs/xsp/Flow.xsp
+++ b/xs/xsp/Flow.xsp
@@ -8,21 +8,13 @@
%name{Slic3r::Flow} class Flow {
~Flow();
%name{_new} Flow(float width, float height, float nozzle_diameter);
- void set_height(float height)
- %code{% THIS->height = height; %};
- void set_bridge(bool bridge)
- %code{% THIS->bridge = bridge; %};
Clone<Flow> clone()
%code{% RETVAL = THIS; %};
- float width()
- %code{% RETVAL = THIS->width; %};
- float height()
- %code{% RETVAL = THIS->height; %};
- float nozzle_diameter()
- %code{% RETVAL = THIS->nozzle_diameter; %};
- bool bridge()
- %code{% RETVAL = THIS->bridge; %};
+ float width();
+ float height();
+ float nozzle_diameter();
+ bool bridge();
float spacing();
float spacing_to(Flow* other)
%code{% RETVAL = THIS->spacing(*other); %};
@@ -32,17 +24,16 @@
%{
Flow*
-_new_from_width(CLASS, role, width, nozzle_diameter, height, bridge_flow_ratio)
+_new_from_width(CLASS, role, width, nozzle_diameter, height)
char* CLASS;
FlowRole role;
std::string width;
float nozzle_diameter;
float height;
- float bridge_flow_ratio;
CODE:
ConfigOptionFloatOrPercent optwidth;
optwidth.deserialize(width);
- RETVAL = new Flow(Flow::new_from_config_width(role, optwidth, nozzle_diameter, height, bridge_flow_ratio));
+ RETVAL = new Flow(Flow::new_from_config_width(role, optwidth, nozzle_diameter, height));
OUTPUT:
RETVAL
diff --git a/xs/xsp/Layer.xsp b/xs/xsp/Layer.xsp
index 5d006e676..50ddfd9a1 100644
--- a/xs/xsp/Layer.xsp
+++ b/xs/xsp/Layer.xsp
@@ -23,8 +23,8 @@
Ref<ExtrusionEntityCollection> fills()
%code%{ RETVAL = &THIS->fills; %};
- Clone<Flow> flow(FlowRole role, bool bridge = false, double width = -1)
- %code%{ RETVAL = THIS->flow(role, bridge, width); %};
+ Clone<Flow> flow(FlowRole role)
+ %code%{ RETVAL = THIS->flow(role); %};
void prepare_fill_surfaces();
void make_perimeters(SurfaceCollection* slices, SurfaceCollection* fill_surfaces)
%code%{ THIS->make_perimeters(*slices, fill_surfaces); %};
diff --git a/xs/xsp/Print.xsp b/xs/xsp/Print.xsp
index cc3dac224..9e632bd53 100644
--- a/xs/xsp/Print.xsp
+++ b/xs/xsp/Print.xsp
@@ -33,9 +33,6 @@ _constant()
Ref<StaticPrintConfig> config()
%code%{ RETVAL = &THIS->config(); %};
Ref<Print> print();
-
- Clone<Flow> flow(FlowRole role, double layer_height, bool bridge, bool first_layer, double width, PrintObject* object)
- %code%{ RETVAL = THIS->flow(role, layer_height, bridge, first_layer, width, *object); %};
};
%name{Slic3r::Print::Object} class PrintObject {