Add VTU importer with surface + volume cell partitioning#234
Merged
jeffamstutz merged 1 commit intoNVIDIA:next_releasefrom Feb 23, 2026
Merged
Add VTU importer with surface + volume cell partitioning#234jeffamstutz merged 1 commit intoNVIDIA:next_releasefrom
jeffamstutz merged 1 commit intoNVIDIA:next_releasefrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request enhances the VTU importer to support both surface and volume cell partitioning, providing a more comprehensive import capability for VTK Unstructured Grid files. The changes enable the -vtu command-line option to import both surfaces (triangles, quads, polygons) and volumes (tetrahedra, voxels, hexahedra, wedges, pyramids) from a single VTU file, while maintaining backward compatibility with the -volume option that only imports volume cells as a SpatialField.
Changes:
- Added new VTU importer with dual functionality: full scene import with surfaces + volumes, and spatial field-only import for backward compatibility
- Implemented cell type partitioning to separate surface cells (for mesh rendering) from volume cells (for spatial field rendering)
- Integrated the new importer into the command-line interface and file import dispatcher
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tsd/src/tsd/io/importers/import_VTU.cpp | Complete rewrite with surface extraction/triangulation and volume cell filtering logic |
| tsd/src/tsd/io/importers.hpp | Added declaration for new void import_VTU(Scene&, const char*, LayerNodeRef) overload |
| tsd/src/tsd/io/importers/import_file.cpp | Integrated VTU importer into the file dispatch logic |
| tsd/src/tsd/app/Core.cpp | Added -vtu command-line flag handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0ce0f16 to
95d071f
Compare
Collaborator
|
LGTM, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This improves on the VTU importer so:
-volumecommand line importer-vtu