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

OneSkeleton processing package. More...

#include <OneSkeleton.h>

Inheritance diagram for ttk::OneSkeleton:
ttk::Debug ttk::BaseClass

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_
 
Wrapperwrapper_
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

OneSkeleton processing package.

Author
Julien Tierny julie.nosp@m.n.ti.nosp@m.erny@.nosp@m.lip6.nosp@m..fr
Date
June 2015.

OneSkeleton is a processing package that handles the 1-skeleton (edges) of a triangulation.

See also
Triangulation
ttkTriangulation

Definition at line 25 of file OneSkeleton.h.

Constructor & Destructor Documentation

◆ OneSkeleton()

OneSkeleton::OneSkeleton ( )

Definition at line 6 of file OneSkeleton.cpp.

Member Function Documentation

◆ buildEdgeLinks() [1/2]

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).

Parameters
edgeListList 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.
edgeStarsList 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.
cellArrayCell container allowing to retrieve the vertices ids of each cell.
edgeLinksOutput 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.
Returns
Returns 0 upon success, negative values otherwise.

Definition at line 11 of file OneSkeleton.cpp.

◆ buildEdgeLinks() [2/2]

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).

Parameters
edgeListList 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.
edgeStarsList 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.
cellEdgesList 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.
edgeLinksOutput 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.
Returns
Returns 0 upon success, negative values otherwise.

Definition at line 66 of file OneSkeleton.cpp.

◆ buildEdgeList()

template<std::size_t n>
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.

Parameters
vertexNumberNumber of vertices in the triangulation.
cellArrayCell container allowing to retrieve the vertices ids of each cell.
edgeListOutput edge list (each entry is an ordered std::array of vertex identifiers).
edgeStarsOutput for edge cell adjacency (for each edge, a list of adjacent cells)
cellEdgeListOutput for cell edges: per cell, the list of its edges identifiers
Returns
Returns 0 upon success, negative values otherwise.

Definition at line 198 of file OneSkeleton.cpp.


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