Skip to content

Fix wrong cell IDs loaded by `vtkLSDynaReader`

Tomohiro Ichinose requested to merge fix_elem_id_for_d3plot_reader into master

User cell IDs loaded by vtkLSDynaReader are wrong for d3plot files that contain both solid and shell elements. This is because of reading order of user cell IDs for each types (solid, thin shell, thick shell, etc.).

Even though I couldn't find any description about the order on official specifications, another reader implementation (https://github.com/lasso-gmbh/lasso-python/blob/82e20c7df83608b79b27794b7820493a718f39ee/lasso/dyna/D3plot.py#L1420) loads in the following order:

  1. solid
  2. beam
  3. (thin) shell
  4. thick shell

Actually, cell IDs seems collect (for my data, at least) after modifying the order.

Can you merge this?

Merge request reports