TTK
|
OneSkeleton processing package. More...
#include <OneSkeleton.h>
Public Member Functions | |
OneSkeleton () | |
int | buildEdgeLinks (const std::vector< std::array< SimplexId, 2 > > &edgeList, const FlatJaggedArray &edgeStars, const CellArray &cellArray, FlatJaggedArray &edgeLinks) const |
int | buildEdgeLinks (const std::vector< std::array< SimplexId, 2 > > &edgeList, const FlatJaggedArray &edgeStars, const std::vector< std::array< SimplexId, 6 > > &cellEdges, FlatJaggedArray &edgeLinks) const |
template<std::size_t n> | |
int | buildEdgeList (const SimplexId &vertexNumber, const CellArray &cellArray, std::vector< std::array< SimplexId, 2 > > &edgeList, FlatJaggedArray &edgeStars, std::vector< std::array< SimplexId, n > > &cellEdgeList) 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) |
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) |
Protected Attributes inherited from ttk::Debug | |
int | debugLevel_ |
std::string | debugMsgPrefix_ |
std::string | debugMsgNamePrefix_ |
Protected Attributes inherited from ttk::BaseClass | |
bool | lastObject_ |
int | threadNumber_ |
Wrapper * | wrapper_ |
Static Protected Attributes inherited from ttk::Debug | |
static COMMON_EXPORTS debug::LineMode | lastLineMode = ttk::debug::LineMode::NEW |
OneSkeleton processing package.
OneSkeleton is a processing package that handles the 1-skeleton (edges) of a triangulation.
Definition at line 25 of file OneSkeleton.h.
OneSkeleton::OneSkeleton | ( | ) |
Definition at line 6 of file OneSkeleton.cpp.
int OneSkeleton::buildEdgeLinks | ( | const std::vector< std::array< SimplexId, 2 > > & | edgeList, |
const FlatJaggedArray & | edgeStars, | ||
const CellArray & | cellArray, | ||
FlatJaggedArray & | edgeLinks | ||
) | const |
Compute the link of each edge of a 2D triangulation (unspecified behavior if the input mesh is not a valid triangulation).
edgeList | List of edges. The size of this std::vector should be equal to the number of edges in the triangulation. Each entry is a std::pair of vertex identifiers. |
edgeStars | List of edge stars. The size of this std::vector should be equal to the number of edges. Each entry is a std::vector of triangle identifiers. |
cellArray | Cell container allowing to retrieve the vertices ids of each cell. |
edgeLinks | Output edge links. The size of this std::vector will be equal to the number of edges in the triangulation. Each entry will be a std::vector listing the vertices in the link of the corresponding vertex. |
Definition at line 11 of file OneSkeleton.cpp.
int OneSkeleton::buildEdgeLinks | ( | const std::vector< std::array< SimplexId, 2 > > & | edgeList, |
const FlatJaggedArray & | edgeStars, | ||
const std::vector< std::array< SimplexId, 6 > > & | cellEdges, | ||
FlatJaggedArray & | edgeLinks | ||
) | const |
Compute the link of each edge of a 3D triangulation (unspecified behavior if the input mesh is not a valid triangulation).
edgeList | List of edges. The size of this std::vector should be equal to the number of edges in the triangulation. Each entry is a std::pair of vertex identifiers. |
edgeStars | List of edge stars. The size of this std::vector should be equal to the number of edges. Each entry is a std::vector of tetrahedron identifiers. |
cellEdges | List of celle edges. The size of this std::vector should be equal to the number of tetrahedra in the triangulation. Each entry is a std::vector of edge identifiers. |
edgeLinks | Output edge links. The size of this std::vector will be equal to the number of edges in the triangulation. Each entry will be a std::vector listing the vertices in the link of the corresponding vertex. |
Definition at line 66 of file OneSkeleton.cpp.
template int OneSkeleton::buildEdgeList< 6 > | ( | const SimplexId & | vertexNumber, |
const CellArray & | cellArray, | ||
std::vector< std::array< SimplexId, 2 > > & | edgeList, | ||
FlatJaggedArray & | edgeStars, | ||
std::vector< std::array< SimplexId, n > > & | cellEdgeList | ||
) | const |
Compute the list of edges of a valid triangulation.
vertexNumber | Number of vertices in the triangulation. |
cellArray | Cell container allowing to retrieve the vertices ids of each cell. |
edgeList | Output edge list (each entry is an ordered std::array of vertex identifiers). |
edgeStars | Output for edge cell adjacency (for each edge, a list of adjacent cells) |
cellEdgeList | Output for cell edges: per cell, the list of its edges identifiers |
Definition at line 198 of file OneSkeleton.cpp.