Description
Please describe the problem you are trying to solve.
The remeshing API (in #2070) forbids reading from a mesh after it has been reset using resetMesh()
.
There are cases where access to read data on the new mesh would be useful.
Describe the solution you propose.
Allow calling readData()
after resetMesh()
.
Describe alternatives you've considered
Keep the current error and force the user to design the adapter around this restriction.
Additional context
Resetting a mesh also resets the associated data.
Thus, in order to read from this mesh again, read mappings to the reset mesh need recomputing. This however leads to the same issue as remeshing has in general, being that the received mesh may not contain all required vertices.
Hence, locally recomputing may lead to incorrect results for data of new vertices requiring filtered out vertices to work.