Skip to content

OSPRayMaterialLibrary: add a WriteFile method

  • Add a method 'WriteFile' to store the material library into a file.
  • Also improved the 'NamedTextures' to store the filename when using vtkOSPRayMaterialLibrary::AddTexture, to save it again when writing into the file.
  • Add the possibility to save the texture filename in relative path (previous behaviour) AND with an absolute path.

The issue #18319 keep track of the improvement that can be made when writing/reading a buffer (we lose the texture name when using writeBuffer)

Merge request reports