Skip to content
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

TTKTopologicalSimplificationByPersistence not working for certain thresholds #1081

Open
kamakshidasan opened this issue Dec 16, 2024 · 0 comments

Comments

@kamakshidasan
Copy link
Contributor

I am trying to apply TTKTopologicalSimplificationByPersistence on a particular dataset. After a particular threshold, the filter seems to hang.

I have attached the dataset exhibiting this behaviour.

vtk_file = 'smooth_fire_clip_tv_2270.vtk'
file_path = os.path.join(input_directory, vtk_file)

vtk_reader = LegacyVTKReader(FileNames=[file_path])
clean_to_grid = CleantoGrid(Input=vtk_reader)
tetrahedralize_data = Tetrahedralize(Input=clean_to_grid)

topological_simplification = TTKTopologicalSimplificationByPersistence(Input=tetrahedralize_data)
topological_simplification.PersistenceThreshold = 3.8
topological_simplification.ThresholdIsAbsolute = 1
topological_simplification.InputArray = ['POINTS', 'Elevation']
topological_simplification.PairType = 'Extremum-Saddle'

On thresholds from [0.001, 3.7], the filter seems to work as expected. However, on 3.8 the filter seems to hang.

The same is seen on Paraview GUI also.

Screenshot 2024-12-16 at 15 00 32

OS: MacOS 14.7 (23H124), Paraview 5.12.0 was downloaded directly from Paraview's website. TTK was installed from the plugins section.

I will be unable to build TTK from scratch or change Paraview's version or use another OS at the moment, and hence this issue has not been tested on other environments.

Also, which paper is in the backend of TTKTopologicalSimplificationByPersistence?

smooth_fire_clip_tv_2270.vtk.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant