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
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-09-24 16:15:49 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-10-01 15:58:37 +0300
commite675a5d5c6022b1a75da02b38d22cf08b6bc5c6f (patch)
tree8cc86a904abd06cc143fdc2e64e57dab9bc29da9 /sandboxes
parent9d775d0a43edebd6bc7f2c8b598f5fa1a8998bcd (diff)
Reworked pad creation algorithm with new parameters:
* brim size * force pad around object everywhere
Diffstat (limited to 'sandboxes')
-rw-r--r--sandboxes/slabasebed/slabasebed.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sandboxes/slabasebed/slabasebed.cpp b/sandboxes/slabasebed/slabasebed.cpp
index b8b94d86f..1996a1eb8 100644
--- a/sandboxes/slabasebed/slabasebed.cpp
+++ b/sandboxes/slabasebed/slabasebed.cpp
@@ -16,9 +16,9 @@ const std::string USAGE_STR = {
namespace Slic3r { namespace sla {
-Contour3D create_base_pool(const Polygons &ground_layer,
+Contour3D create_pad(const Polygons &ground_layer,
const ExPolygons &holes = {},
- const PoolConfig& cfg = PoolConfig());
+ const PadConfig& cfg = PadConfig());
Contour3D walls(const Polygon& floor_plate, const Polygon& ceiling,
double floor_z_mm, double ceiling_z_mm,
@@ -45,7 +45,7 @@ int main(const int argc, const char *argv[]) {
model.align_to_origin();
ExPolygons ground_slice;
- sla::base_plate(model, ground_slice, 0.1f);
+ sla::pad_plate(model, ground_slice, 0.1f);
if(ground_slice.empty()) return EXIT_FAILURE;
ground_slice = offset_ex(ground_slice, 0.5);
@@ -56,10 +56,10 @@ int main(const int argc, const char *argv[]) {
bench.start();
- sla::PoolConfig cfg;
+ sla::PadConfig cfg;
cfg.min_wall_height_mm = 0;
cfg.edge_radius_mm = 0;
- mesh = sla::create_base_pool(to_polygons(ground_slice), {}, cfg);
+ mesh = sla::create_pad(to_polygons(ground_slice), {}, cfg);
bench.stop();