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

Compact Triangulation Cache Size Everywhere #712

Open
JonasLukasczyk opened this issue Jan 13, 2022 · 6 comments
Open

Compact Triangulation Cache Size Everywhere #712

JonasLukasczyk opened this issue Jan 13, 2022 · 6 comments

Comments

@JonasLukasczyk
Copy link
Contributor

Hi all,
I noticed every filter has now a Compact Triangulation Cache Size property. Is this intentional? Especially in the node editor this clutters the view.

@julien-tierny
Copy link
Collaborator

julien-tierny commented Jan 13, 2022

this property was introduced in PR #674 and yes, this is intentional.
however, I've just realized it was not in advanced visibility mode (which was not intentional).

commit c34e97c may fix this issue.
thanks for letting me know if that works out for you.

@JonasLukasczyk
Copy link
Contributor Author

I'm not a fan of this. I think this should be a dedicated filter similar to PeriodicGrid.

@JonasLukasczyk
Copy link
Contributor Author

Debug level and thread numbers are relevant for the majority of filters, but this can not be said about the triangulation cache.

@julien-tierny
Copy link
Collaborator

The filter CompactTriangulationPreconditioning will indeed switch on the compact triangulation support (pretty much like the PeriodicGrid filter) and trigger the computation of the compact triangulation.
This is the "off-line" part of the data structure if you will (preconditioning).

However, the CompactTriangulationCacheSize is a parameter which is used at query time, i.e. when used by a filter.
So this can be tuned at a filter level, pretty much like the number of thread or the debug level.
My understanding is that this parameter must be tuned depending on the algorithm under consideration (whether or not it requires significant triangulation preconditioning) for optimal performance.

@guoxiliu could give you more information about that.

did c34e97c (at least partially) solve your issue?

@guoxiliu
Copy link
Contributor

Just as @julien-tierny said, the CompactTriangulationCacheSize is a parameter used at the filter level, and different filters may prefer different cache sizes. But I agree with @JonasLukasczyk, it is kind of annoying to see that in every filter. Ideally, the property should only appear when the compact triangulation is going to be used, i.e., the input dataset has the ttkCompactTriangulationIndex field. I don't know how to make it show the property based on a specific condition. Do you all have any ideas about it?

@JonasLukasczyk
Copy link
Contributor Author

I will investigate if it is possible to show/hide a paraview property widget based on the existence of a scalar array.

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

3 participants