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:
- The values of "UserID" read by
vtkLSDynaReader
is incorrect. - A part of the memory range of "User ID" may not have been initialized. (NOTE: Word size of
vtkIdType
can be different fromGetWordSize()
)
I edited vtkLSDynaPart::AddPointInformation
to allow type conversion (src: T
-> dst: U
) and used it to implement vtkLSDynaPartCollection::FillPointUserIds
.