Skip to content

TTKTopologicalSimplificationByPersistence not working for certain thresholds #1081

@kamakshidasan

Description

@kamakshidasan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions