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-02-13 20:21:27 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-02-13 20:22:00 +0300
commitdaa8f7ef1bfb9f501e99872b9b300bc3696565e6 (patch)
treefb6c8341e111c63fb2ef3ec38bbb1280714f62b4 /sandboxes
parent0d13ecdce80567378566b28b6fc48611370a569d (diff)
Refactored version of the wall triangulation algorithm, initial integration.
Diffstat (limited to 'sandboxes')
-rw-r--r--sandboxes/slabasebed/slabasebed.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sandboxes/slabasebed/slabasebed.cpp b/sandboxes/slabasebed/slabasebed.cpp
index 569af4faa..323741609 100644
--- a/sandboxes/slabasebed/slabasebed.cpp
+++ b/sandboxes/slabasebed/slabasebed.cpp
@@ -15,9 +15,9 @@ const std::string USAGE_STR = {
namespace Slic3r { namespace sla {
Contour3D convert(const Polygons& triangles, coord_t z, bool dir);
-Contour3D walls(const ExPolygon& floor_plate, const ExPolygon& ceiling,
+Contour3D walls(const Polygon& floor_plate, const Polygon& ceiling,
double floor_z_mm, double ceiling_z_mm,
- ThrowOnCancel thr, double offset_difference_mm = 0.0);
+ double offset_difference_mm, ThrowOnCancel thr);
void offset(ExPolygon& sh, coord_t distance);
@@ -64,7 +64,7 @@ int main(const int argc, const char *argv[]) {
mesh.merge(bottom_plate_mesh);
mesh.merge(top_plate_mesh);
- sla::Contour3D w = sla::walls(bottom_plate, top_plate, 0, 3, [](){}, 2.0);
+ sla::Contour3D w = sla::walls(bottom_plate.contour, top_plate.contour, 0, 3, 2.0, [](){});
mesh.merge(w);
// sla::create_base_pool(ground_slice, basepool);