-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 2D mesh support #8
Comments
Looking through ITK it is unclear to what extent 2D meshes are supported, particularly in the Python wrapping.
Note that this isn't strictly correct -- .vtk legacy format documentation indicates
However it doesn't appear that any unit tests are included for 2D mesh input and manipulation in ITK. @thewtex Is this worth pursuing further as an ITK issue for supporting |
Side note that VTK is reverting to default to legacy 4.2 |
Cc: @bpaniagua @lassoan |
The only mesh file format that I recall currently works with 2D meshes in practice is .off. .vtk 2D meshes would be nice to add, but I only think it is worthwhile if there is support in VTK. |
2D meshes often make the most sense when working with 2D images. |
FYI I just encountered this issue in a different context as well. For an elastix/transformix unit test, I was trying to read a list of 2D points from the following vtk file, using the ITK Python Package:
Only then it appeared to me that I also noticed that the corresponding C++ function in ITK does support 2D points, as long as the mesh type specified as template argument is also 2D:
So I agree that it would be useful if Note that My two cents! |
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest `VTKPolyDataMeshIO.SupportsAnyPointDimension`. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest VTKPolyDataMeshIO.SupportsAnyPointDimensionGreaterThanZero. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest VTKPolyDataMeshIO.SupportsPointDimensionsGreaterThanOne. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
This is not going to be a valid .vtk file, i.e. most other applications that support the .vtk file format will not be able to read it.
👍 |
It seems to me that ITK has been able to both read and write 2D .vtk files for more than 10 years already. It "just" worked, "out of the box", using |
It is nice that .vtk files has worked for writing / reading from ITK. To get the most value out of a standard format, we will want to follow the standard so other tools and libraries following the standard can use the files. |
From the standard:
|
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest VTKPolyDataMeshIO.SupportsPointDimensionsGreaterThanOne. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest VTKPolyDataMeshIO.SupportsPointDimensionsGreaterThanOne. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest VTKPolyDataMeshIO.SupportsPointDimensionsGreaterThanOne. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest VTKPolyDataMeshIO.SupportsPointDimensionsGreaterThanOne. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
`itk::MeshFileWriter` does allow writing non-3D points to a .vtk file, so it appears both reasonable and useful for `itk::MeshFileReader` to allow reading those points back. Implemented by setting the PointDimension within MeshFileReader::GenerateData(), and tested by GTest VTKPolyDataMeshIO.SupportsPointDimensionsGreaterThanOne. Related to issue slicersalt/ITKShape#8 "Add 2D mesh support" by Matt McCormick.
We have to replace this block:
https://github.com/slicersalt/ITKMesh3DProcrustesAlignFilter/blob/783c04a51abea78e47e071cc66ed29cfdaa8a8a0/include/itkMesh3DProcrustesAlignFilter.h#L129-L151
maybe others?
The text was updated successfully, but these errors were encountered: