Ported TriangleMesh::scale_xyz()

This commit is contained in:
Alessandro Ranellucci 2013-09-09 23:38:49 +02:00
parent 5e34a9cf21
commit 9b12d6037a
7 changed files with 45 additions and 17 deletions

View file

@ -126,6 +126,15 @@ void TriangleMesh::scale(float factor)
stl_scale(&(this->stl), factor);
}
void TriangleMesh::scale(std::vector<double> versor)
{
float fversor[3];
fversor[0] = versor[0];
fversor[1] = versor[1];
fversor[2] = versor[2];
stl_scale(&this->stl, fversor);
}
void TriangleMesh::translate(float x, float y, float z)
{
stl_translate(&(this->stl), x, y, z);