`VTKSurfaceMeshRenderDelegate` doesn't correctly update scalars
When the mesh gets updated the delegate needs to react update scalars as well
For example this happens when localMarchingCubes updates its submesh, scalars that are attached to this submesh can't not be processed after the first frame. this can be fixed by adding for example by adding
// Map vertex scalars if it has them
if (m_geometry->getVertexScalars() != nullptr)
{
m_mappedVertexScalarArray = GeometryUtils::coupleVtkDataArray(m_geometry->getVertexScalars());
m_polydata->GetPointData()->SetScalars(m_mappedVertexScalarArray);
}
to the body of the geometryUpdate()
function but i am asuming cellScalars need to be updated here as well. But the delegate handles points and triangles in two different manners (sharing data vs copying), this might also be an issue in some of the other delegates as well.