Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#4669 from thewtex/mesh-s…
Browse files Browse the repository at this point in the history
…egfault

BUG: VTKPolyDataMeshIO support for reading VTK 5.1 format
  • Loading branch information
thewtex authored May 16, 2024
2 parents 5786ce1 + 30a9409 commit e59ee99
Show file tree
Hide file tree
Showing 6 changed files with 608 additions and 95 deletions.
10 changes: 10 additions & 0 deletions Modules/IO/MeshVTK/include/itkVTKPolyDataMeshIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,16 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase

static void
ReadComponentsAsASCII(std::ifstream & inputFile, double * const buffer, const SizeValueType numberOfComponents);

template <typename TOffset>
void
ReadCellsBufferAsBINARYOffsetType(std::ifstream & inputFile, void * buffer);

template <typename TOffset, typename TConnectivity>
void
ReadCellsBufferAsBINARYConnectivityType(std::ifstream & inputFile, void * buffer);

uint8_t m_ReadMeshVersionMajor{ 4 };
};
} // end namespace itk

Expand Down
Loading

0 comments on commit e59ee99

Please sign in to comment.