Skip to content
Snippets Groups Projects
Commit 02f2f826 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add TriMeshModel::clone(float, float, float)

parent 13a4396d
No related branches found
No related tags found
No related merge requests found
......@@ -906,6 +906,10 @@ namespace VirtualRobot
r->scale(scaleFactor);
return r;
}
TriMeshModelPtr TriMeshModel::clone(float x, float y, float z) const
{
return clone(Eigen::Vector3f{x, y, z});
}
} // namespace VirtualRobot
......@@ -139,6 +139,7 @@ namespace VirtualRobot
virtual void scale(float scaleFactor);
TriMeshModelPtr clone() const;
TriMeshModelPtr clone(const Eigen::Vector3f& scaleFactor) const;
TriMeshModelPtr clone(float x, float y, float z) const;
std::vector<Eigen::Vector3f> normals;
std::vector<Eigen::Vector3f> vertices;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment