Skip to content

Fix uninitialized array: "UserID" (user node IDs) read by `vtkLSDynaReader`

The values of user node IDs (of type vtkIdType) is set as the type double or float. This has two problems:

  1. The values of "UserID" read by vtkLSDynaReader is incorrect.
  2. A part of the memory range of "User ID" may not have been initialized. (NOTE: Word size of vtkIdType can be different from GetWordSize())

I edited vtkLSDynaPart::AddPointInformation to allow type conversion (src: T -> dst: U) and used it to implement vtkLSDynaPartCollection::FillPointUserIds.

Merge request reports