diff --git a/src/TriangleMesh.cpp b/src/TriangleMesh.cpp index 07d4cddbe16763fb40b303f7fdf06d11d6dba040..9fbda67e7eec7f118f2d10a2ecb3d83388311f18 100644 --- a/src/TriangleMesh.cpp +++ b/src/TriangleMesh.cpp @@ -1400,40 +1400,6 @@ void ActiveMesh::CenterMesh(const float safeConstant) } -void ActiveMesh::ScaleMesh(const Vector3F& scale) -{ - //cell body - for (unsigned int i=0; i < Pos.size(); ++i) - { - Pos[i].x*=scale.x; - Pos[i].y*=scale.y; - Pos[i].z*=scale.z; - } - - //filopodia - for (size_t f=0; f < Ftree.size(); ++f) - { - mesh_t& filoMesh=Ftree[f]; - for (unsigned int i=0; i < filoMesh.Pos.size(); ++i) - { - filoMesh.Pos[i].x*=scale.x; - filoMesh.Pos[i].y*=scale.y; - filoMesh.Pos[i].z*=scale.z; - } - for (unsigned int i=0; i < filoMesh.fPoints.size(); ++i) - { - filoMesh.fPoints[i].x*=scale.x; - filoMesh.fPoints[i].y*=scale.y; - filoMesh.fPoints[i].z*=scale.z; - } - for (unsigned int i=0; i< filoMesh.segFromRadius.size(); i++) - { - filoMesh.segFromRadius[i] *= 80.f; - } - } -} - - void ActiveMesh::TranslateMesh(const Vector3F& shift) { //cell body diff --git a/src/TriangleMesh.h b/src/TriangleMesh.h index 5ecec9c564b892485fb2de7cc241e62baac0be7c..777a64327d8643a2e9cdf45ae9c9fe0c61f2563f 100644 --- a/src/TriangleMesh.h +++ b/src/TriangleMesh.h @@ -143,10 +143,7 @@ class ActiveMesh bool DotsFirstRun(void) { return (dots.size() == 0); } - ///mesh rigid-manipulation functions to convert it from - ///Dima's world into real microns-floating-point coordinates - ///such that the cell appears approx. in the middle of the output images - void ScaleMesh(const Vector3F& scale); + ///if needed, it shifts all mesh coordinates by the \e shift vector void TranslateMesh(const Vector3F& shift); /**