You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENH: Add low-level VTK-to-USD facade and clarify API boundary (#46)
* ENH: Add low-level VTK-to-USD facade and clarify API boundary
Add vtk_to_usd.convert_vtk_file() as the stable advanced file-conversion
facade, while keeping ConvertVTKToUSD as the in-repo API for experiments,
workflows, and tests.
Refactor VTK-to-USD tests to validate behavior through ConvertVTKToUSD,
replace experiment diagnostics with ConvertVTKToUSD.inspect_file(), and
update docs/API map to remove stale converter APIs.
* ENH: Clarify VTK-to-USD API boundary and add file facade
Add vtk_to_usd.convert_vtk_file() as the stable advanced low-level
single-file conversion facade while keeping ConvertVTKToUSD as the in-repo
API for experiments, workflows, and tests.
Add ConvertVTKToUSD.inspect_file() for public diagnostics, update experiments
to use it, refactor tests to exercise conversion through ConvertVTKToUSD, and
refresh docs/API map to remove stale converter APIs. Handle empty mesh
inspection without raising.
* DOCS: consolidate VTK-to-USD API documentation
Remove duplicate ConvertVTKToUSD API pages, clean stale navigation links,
clarify VTK-to-USD scaling and primvar documentation, and remove an unused
Valve4D test helper.
PhysioMotion4D provides two APIs for converting VTK data to USD for NVIDIA Omniverse visualization:
310
+
PhysioMotion4D provides two APIs for converting VTK data to USD for NVIDIA Omniverse visualization. Repository workflows, experiments, and CLIs use `ConvertVTKToUSD`; `vtk_to_usd` is a public advanced layer for users who need low-level file conversion primitives.
-`def test_time_codes_non_monotone_raises(self, tmp_path)` (line 232): from_files() must reject time_codes that decrease between frames.
726
-
-`def test_time_codes_equal_consecutive_is_valid(self, tmp_path)` (line 242): Equal consecutive time codes are non-decreasing and must not raise.
727
-
-`def test_from_files_populates_cached_mesh_data(self, tmp_path)` (line 256): from_files() with >1 frame must populate _cached_mesh_data.
728
-
-`def test_from_files_cache_reused_in_convert(self, tmp_path)` (line 269): _convert_unified() must not call _vtk_to_mesh_data() when cache is populated.
729
-
-`def test_from_files_single_file_no_cache(self, tmp_path)` (line 287): A single-file converter must not populate _cached_mesh_data.
730
-
-`def test_from_files_static_merge_no_cache(self, tmp_path)` (line 295): static_merge=True must not populate _cached_mesh_data.
731
-
-**class TestVTKReader** (line 307): Test VTK file reading capabilities.
732
-
-`def test_read_vtp_file(self, kcl_average_surface)` (line 310): Test reading VTP (PolyData) files.
733
-
-`def test_read_legacy_vtk_file(self)` (line 331): Test reading legacy VTK files.
734
-
-`def test_generic_arrays_preserved(self, kcl_average_surface)` (line 358): Test that generic data arrays are preserved during reading.
735
-
-**class TestVTKToUSDConversion** (line 382): Test VTK to USD conversion capabilities.
736
-
-`def test_single_file_conversion(self, test_directories, kcl_average_surface)` (line 385): Test converting a single VTK file to USD.
737
-
-`def test_conversion_with_material(self, test_directories, kcl_average_surface)` (line 417): Test conversion with a custom solid color material.
738
-
-`def test_conversion_settings(self, test_directories, kcl_average_surface)` (line 455): Test that ConvertVTKToUSD applies correct default stage metadata.
739
-
-`def test_primvar_preservation(self, test_directories, kcl_average_surface)` (line 478): Test that VTK data arrays are preserved as USD primvars.
740
-
-**class TestTimeSeriesConversion** (line 514): Test time-series conversion capabilities.
741
-
-`def test_time_series_conversion(self, test_directories, kcl_average_surface)` (line 517): Test converting multiple VTK files as a time series.
-`def test_time_codes_non_monotone_raises(self, tmp_path)` (line 91): from_files() must reject time_codes that decrease between frames.
722
+
-`def test_time_codes_equal_consecutive_is_valid(self, tmp_path)` (line 101): Equal consecutive time codes are non-decreasing and must not raise.
723
+
-`def test_from_files_single_file_writes_static_mesh(self, tmp_path)` (line 113): A single-file converter writes a static mesh with no time range.
724
+
-`def test_from_files_static_merge_writes_separate_meshes(self, tmp_path)` (line 125): static_merge=True treats files as static objects, not time samples.
725
+
-**class TestSyntheticConversion** (line 144): Synthetic ConvertVTKToUSD tests that do not require downloaded data.
0 commit comments