WIP: TEST: Add test for imstkMesh class
Some subjects of discussion:
- Method's name maybe to improve (see comment changes in
imstkMesh.h
) - Update of
m_verticesPositions
inMesh::setVerticesDisplacements(const Vectord& u)
but not inMesh::setVerticesDisplacements(const StdVectorOfVec3d& diff)
- What should happen if
u
inMesh::setVerticesDisplacements(const Vectord& u)
has a size different than3 * m_verticesDisplacements.size()
? - In
imstkMesh.h
, it saysMesh::setVerticesDisplacements(const Vectord& u)
"Sets the displacements of mesh vertices from a linearized displacement vector" doesn't it mean that, we should apply the same displacement to each vertex?