Skip to content

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 in Mesh::setVerticesDisplacements(const Vectord& u) but not in Mesh::setVerticesDisplacements(const StdVectorOfVec3d& diff)
  • What should happen if u in Mesh::setVerticesDisplacements(const Vectord& u) has a size different than 3 * m_verticesDisplacements.size()?
  • In imstkMesh.h, it says Mesh::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?

Merge request reports