Skip to content

Commit

Permalink
BUG: Fix export of VTK unstructured grid
Browse files Browse the repository at this point in the history
Mesh type hint was not copied. Node export makes a copy of the node before saving and it did not get the right mesh type hint,
which made saving of unstructured grid mesh saving fail.

Fixes the issue reported at https://discourse.slicer.org/t/error-when-exporting-3d-mesh-model-to-vtu-file-and-invisible-vtk-file-in-paraview/25150
  • Loading branch information
lassoan committed May 22, 2024
1 parent c06af8f commit 3be02fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libs/MRML/Core/vtkMRMLModelNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void vtkMRMLModelNode::CopyContent(vtkMRMLNode* anode, bool deepCopy/*=true*/)
{
return;
}
this->MeshType = node->MeshType;
if (deepCopy)
{
if (node->GetMesh())
Expand Down

0 comments on commit 3be02fa

Please sign in to comment.