Skip to content

Vtk no copy

Alexis Girault requested to merge alexis-girault/iMSTK:vtk-no-copy into master

ENH: Align Eigen matrix allocator for stl vectors - 0fa25818

Define StdVectorOfxxx for all eigen matrix structures defined in imstkMath.h which are used in iMSTK within a std::vector. See http://eigen.tuxfamily.org/dox-devel/group__TopicStlContainers.html Requires to update SCCD to commit 645508940 which also updates its vec3 structure.

ENH: Use no copy data array to map vertices to VTK - 400c0987

Update VTK mesh render delegates (SurfaceMesh, LineMesh, TetrahedralMesh) to directly map the vertices from the eigen and stl structures in iMSTK, and get rid of VTKMappedVertexArray. This should considerably reduce overhead calls and improve performances thanks to the no-copy operation. See http://www.vtk.org/Wiki/VTK/Tutorials/DataArrays

Add back normals generation in the SurfaceMesh render delegate, and update testPbdCloth to add another row of points to the cloth (made it easier to debug the initial vertex positions), as well as adding lights to better visualize correct normals.

Merge request reports