mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 15:40:37 +08:00
fix get mesh function
This commit is contained in:
parent
3c05edd170
commit
51edd87d45
@ -1012,14 +1012,14 @@ ModelVolume::swap(ModelVolume &other)
|
|||||||
}
|
}
|
||||||
|
|
||||||
TriangleMesh
|
TriangleMesh
|
||||||
ModelVolume::get_transformed_mesh(TransformationMatrix const * additional_trafo = nullptr) const
|
ModelVolume::get_transformed_mesh(TransformationMatrix const * additional_trafo) const
|
||||||
{
|
{
|
||||||
TransformationMatrix trafo = this->trafo;
|
TransformationMatrix trafo = this->trafo;
|
||||||
if(additional_trafo)
|
if(additional_trafo)
|
||||||
{
|
{
|
||||||
trafo.applyLeft(*(additional_trafo));
|
trafo.applyLeft(*(additional_trafo));
|
||||||
}
|
}
|
||||||
TriangleMesh mesh = TriangleMesh::TriangleMesh();
|
TriangleMesh mesh = TriangleMesh();
|
||||||
std::vector<float> trafo_arr = trafo.matrix3x4f();
|
std::vector<float> trafo_arr = trafo.matrix3x4f();
|
||||||
stl_transform(&(this->mesh.stl), &(mesh.stl), trafo_arr.data());
|
stl_transform(&(this->mesh.stl), &(mesh.stl), trafo_arr.data());
|
||||||
stl_invalidate_shared_vertices(&(mesh.stl));
|
stl_invalidate_shared_vertices(&(mesh.stl));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user