change to noexcept data function to get pointer to transform matrix

This commit is contained in:
Michael Kirsch 2019-03-05 21:26:27 +01:00 committed by Joseph Lenox
parent 8219ffe1e3
commit 18a85e93f6

View File

@ -282,8 +282,8 @@ TriangleMesh::WriteOBJFile(const std::string &output_file) const {
void TriangleMesh::transform(const TransformationMatrix &trafo) void TriangleMesh::transform(const TransformationMatrix &trafo)
{ {
std::vector<float> trafo_arr = trafo.matrix3x4f; std::vector<float> trafo_arr = trafo.matrix3x4f();
stl_transform(&this->stl, &(trafo_arr.at(0))); stl_transform(&this->stl, trafo_arr.data());
stl_invalidate_shared_vertices(&this->stl); stl_invalidate_shared_vertices(&this->stl);
} }