mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 20:56:16 +08:00
declare transform function as const
This commit is contained in:
parent
dd3c83b01c
commit
7366702aa5
@ -280,7 +280,7 @@ TriangleMesh::WriteOBJFile(const std::string &output_file) const {
|
||||
#endif
|
||||
}
|
||||
|
||||
TriangleMesh TriangleMesh::transform(const TransformationMatrix &trafo)
|
||||
TriangleMesh TriangleMesh::transform(const TransformationMatrix &trafo) const
|
||||
{
|
||||
TriangleMesh mesh = TriangleMesh::TriangleMesh();
|
||||
std::vector<float> trafo_arr = trafo.matrix3x4f();
|
||||
|
@ -63,7 +63,7 @@ class TriangleMesh
|
||||
bool is_manifold() const;
|
||||
void WriteOBJFile(const std::string &output_file) const;
|
||||
|
||||
TriangleMesh transform(const TransformationMatrix &trafo);
|
||||
TriangleMesh transform(const TransformationMatrix &trafo) const;
|
||||
|
||||
void scale(float factor);
|
||||
void scale(const Pointf3 &versor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user