hi Shashwat,
thanks for your email.
At the moment, there's no direct way in the current API to achieve that.
That being said, one thing that could work is the following:
- iterate on the critical points (first output of the morse-smale complex filter)
-- for each minimum (CellDimension=0) and maximum (CellDimension=the dimension of the data), save the corresponding critical vertex identifier (given by the array "ttkVertexScalarField")
-- Given the vertex identifier of each extremum (above "ttkVertexScalarField" value), you can now retrieve the identifier of the morse-smale manifold it is attached to, by looking at the field "MorseSmaleManifold" of the "ttkVertexScalarField-th" vertex of the output "Segmentation" of the morse-smale complex filter
-- That way, for each morse smale manifold, you can know the pair of extrema which is attached to it.
I hope this helps.
Best,
--
Dr Julien Tierny
CNRS Researcher
Sorbonne Universite
http://lip6.fr/Julien.Tierny