44 "CompactTriangulationPreconditioning");
51 template <
class triangulationType = ttk::AbstractTriangulation>
52 int execute(
const triangulationType *triangulation,
53 const int &argument)
const {
63 {
"#Vertices", std::to_string(triangulation->getNumberOfVertices())},
71#ifndef TTK_ENABLE_KAMIKAZE
76 SimplexId vertexNumber = triangulation->getNumberOfVertices();
77 SimplexId const cellNumber = triangulation->getNumberOfCells();
80 Octree preOctree(triangulation, argument);
81 for(
SimplexId i = 0; i < vertexNumber; i++) {
85 for(
SimplexId i = 0; i < cellNumber; i++) {
90 this->
printErr(
"The construction of the tree failed!");
96 {
"Size of vertex vector", std::to_string(this->
vertices.size())},
97 {
"Size of cell vector", std::to_string(this->
cells.size())},
Implementation of the point region (PR) octree.
int insertVertex(ttk::SimplexId &vertexId)
int insertCell(ttk::SimplexId &cellId)
void reindex(std::vector< ttk::SimplexId > &vertices, std::vector< ttk::SimplexId > &nodes, std::vector< ttk::SimplexId > &cells)
int verifyTree(ttk::SimplexId &vertexNum)
TTK processing package for mesh preprocessing before using TopoCluster.
const std::vector< SimplexId > & getVertices() const
const std::vector< SimplexId > & getNodes() const
std::vector< SimplexId > cells
const std::vector< SimplexId > & getCells() const
std::vector< SimplexId > vertices
~CompactTriangulationPreconditioning() override=default
std::vector< SimplexId > nodes
int execute(const triangulationType *triangulation, const int &argument) const
CompactTriangulationPreconditioning()
Minimalist debugging class.
void setDebugMsgPrefix(const std::string &prefix)
int printErr(const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
int SimplexId
Identifier type for simplices of any dimension.
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/|__ _|"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)