Function: convertMapperToNotSharedMapper()
convertMapperToNotSharedMapper(
sharedMapper):vtkVolumeMapper
Converts a shared mapper to a non-shared mapper. Sometimes we need to detach a shared mapper and apply some changes to it, since otherwise, the changes will be applied to all the mappers that share the same data.
The new mapper is a plain vtk.js mapper, which uploads the complete scalar array at full resolution, with no reduction. With final downsampling off, the mapper is the one of 4.x. With final downsampling on, the upload counts in the memory record, and a grid above the limits of the GPU settings logs a warning.
Parameters
• sharedMapper: vtkVolumeMapper
The shared mapper to convert.
Returns
vtkVolumeMapper
The converted volume mapper.
Defined in
packages/core/src/RenderingEngine/helpers/createVolumeMapper.ts:176