Merge branch 'master' into lm_sla_supports_auto

This commit is contained in:
Lukas Matena 2018-12-14 10:56:07 +01:00
commit 6cc8ae3729
4 changed files with 5 additions and 4 deletions

View File

@ -1876,7 +1876,7 @@ namespace Slic3r {
vertices_count += stl.stats.shared_vertices;
#if ENABLE_MODELVOLUME_TRANSFORM
Transform3d matrix = volume->get_matrix();
const Transform3d& matrix = volume->get_matrix();
#endif // ENABLE_MODELVOLUME_TRANSFORM
for (int i = 0; i < stl.stats.shared_vertices; ++i)

View File

@ -512,7 +512,7 @@ void Model::adjust_min_z()
{
coordf_t obj_min_z = obj->bounding_box().min(2);
if (obj_min_z < 0.0)
obj->translate(0.0, 0.0, -obj_min_z);
obj->translate_instances(Vec3d(0.0, 0.0, -obj_min_z));
}
}
}

View File

@ -7,11 +7,12 @@
namespace Slic3r {
class ExPolygon;
using ExPolygons = std::vector<ExPolygon>;
class TriangleMesh;
namespace sla {
using ExPolygons = std::vector<ExPolygon>;
using ThrowOnCancel = std::function<void(void)>;
/// Calculate the polygon representing the silhouette from the specified height

View File

@ -564,7 +564,7 @@ void SLAPrint::process()
if(!po.m_config.supports_enable.getBool()) elevation = 0;
sla::PoolConfig pcfg(wt, h, md, er);
sla::ExPolygons bp;
ExPolygons bp;
double pad_h = sla::get_pad_elevation(pcfg);
auto&& trmesh = po.transformed_mesh();