I did a lot of research on doxygen contents and could not figure out how to access regionSize. Currently, for example, I'm calculating the persistence diagram with the following code.
), I simply changed the data to be interpreted as three-dimensional grid data.
Simplification is almost the same.
std::vector<float> pointSet(data_3d, data_3d + datalen); //data_3d contains 1d float array of 3d data.
ttk::Triangulation triangulation;
triangulation.setInputGrid(0.0, 0.0, 0.0, 1.0, 1.0, 1.0, xdim, ydim, zdim); // want to interpret data_3d as a grid data. xdim, ydim, and zdim are grid sizes.
std::vector<ttk::SimplexId> order(pointSet.size());
ttk::preconditionOrderArray(pointSet.size(), pointSet.data(), order.data(), 1);
ttk::PersistenceDiagram diagram;
std::vector<ttk::PersistencePair> diagramOutput(50000);
diagram.preconditionTriangulation(&triangulation);
diagram.execute(diagramOutput, pointSet.data(), 0, order.data(), &triangulation);
For example, is it possible to access regionSize from the variable "diagram"? PersistenceDiagram has an internal "FTMTreePP contourTree_" but it is protected.