TTK
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ttk::CompactTriangulationPreconditioning Class Reference

TTK processing package for mesh preprocessing before using TopoCluster. More...

#include <CompactTriangulationPreconditioning.h>

Inheritance diagram for ttk::CompactTriangulationPreconditioning:
ttk::Debug ttk::BaseClass

Public Member Functions

 CompactTriangulationPreconditioning ()
 
 ~CompactTriangulationPreconditioning () override=default
 
template<class triangulationType = ttk::AbstractTriangulation>
int execute (const triangulationType *triangulation, const int &argument) const
 
void clear ()
 
const std::vector< SimplexId > & getVertices () const
 
const std::vector< SimplexId > & getNodes () const
 
const std::vector< SimplexId > & getCells () const
 
- Public Member Functions inherited from ttk::Debug
 Debug ()
 
 ~Debug () override
 
virtual int setDebugLevel (const int &debugLevel)
 
int setWrapper (const Wrapper *wrapper) override
 
int printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
void setDebugMsgPrefix (const std::string &prefix)
 
- Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
 
virtual ~BaseClass ()=default
 
int getThreadNumber () const
 
virtual int setThreadNumber (const int threadNumber)
 

Protected Attributes

std::vector< SimplexIdvertices
 
std::vector< SimplexIdnodes
 
std::vector< SimplexIdcells
 
- Protected Attributes inherited from ttk::Debug
int debugLevel_
 
std::string debugMsgPrefix_
 
std::string debugMsgNamePrefix_
 
- Protected Attributes inherited from ttk::BaseClass
bool lastObject_
 
int threadNumber_
 
Wrapperwrapper_
 

Additional Inherited Members

- Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
 
int welcomeMsg (std::ostream &stream)
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

TTK processing package for mesh preprocessing before using TopoCluster.

The CompactTriangulationPreconditioning class provides methods to compute the indexing for each vertex and then used for TopoCluster data structure.

Author
Guoxi Liu guoxi.nosp@m.l@g..nosp@m.clems.nosp@m.on.e.nosp@m.du
Date
May 2021.

Given a simplicial mesh, this class uses PR star octree to divide it into multiple clusters, and the cluster of each vertex is written as a new scalar field.

Related publications
"The PR-star octree: A spatio-topological data structure for tetrahedral meshes." Kenneth Weiss, Leila Floriani, Riccardo Fellegara, and Marcelo Velloso In Proceedings of the 19th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, 2011.

"TopoCluster: A Localized Data Structure for Topology-based Visualization" Guoxi Liu, Federico Iuricich, Riccardo Fellegara, and Leila De Floriani IEEE Transactions on Visualization and Computer Graphics, 2021.

See also
ttk::CompactTriangulation
ttkCompactTriangulationPreconditioning.cpp for a usage example.

Definition at line 39 of file CompactTriangulationPreconditioning.h.

Constructor & Destructor Documentation

◆ CompactTriangulationPreconditioning()

ttk::CompactTriangulationPreconditioning::CompactTriangulationPreconditioning ( )
inline

Definition at line 42 of file CompactTriangulationPreconditioning.h.

◆ ~CompactTriangulationPreconditioning()

ttk::CompactTriangulationPreconditioning::~CompactTriangulationPreconditioning ( )
overridedefault

Member Function Documentation

◆ clear()

void ttk::CompactTriangulationPreconditioning::clear ( )
inline

Definition at line 115 of file CompactTriangulationPreconditioning.h.

◆ execute()

template<class triangulationType = ttk::AbstractTriangulation>
int ttk::CompactTriangulationPreconditioning::execute ( const triangulationType *  triangulation,
const int &  argument 
) const
inline

Definition at line 52 of file CompactTriangulationPreconditioning.h.

◆ getCells()

const std::vector< SimplexId > & ttk::CompactTriangulationPreconditioning::getCells ( ) const
inline

Definition at line 127 of file CompactTriangulationPreconditioning.h.

◆ getNodes()

const std::vector< SimplexId > & ttk::CompactTriangulationPreconditioning::getNodes ( ) const
inline

Definition at line 124 of file CompactTriangulationPreconditioning.h.

◆ getVertices()

const std::vector< SimplexId > & ttk::CompactTriangulationPreconditioning::getVertices ( ) const
inline

Definition at line 121 of file CompactTriangulationPreconditioning.h.

Member Data Documentation

◆ cells

std::vector<SimplexId> ttk::CompactTriangulationPreconditioning::cells
protected

Definition at line 132 of file CompactTriangulationPreconditioning.h.

◆ nodes

std::vector<SimplexId> ttk::CompactTriangulationPreconditioning::nodes
protected

Definition at line 132 of file CompactTriangulationPreconditioning.h.

◆ vertices

std::vector<SimplexId> ttk::CompactTriangulationPreconditioning::vertices
mutableprotected

Definition at line 132 of file CompactTriangulationPreconditioning.h.


The documentation for this class was generated from the following file: