TTK
Loading...
Searching...
No Matches
ZeroSkeleton.h
Go to the documentation of this file.
1
12
13#pragma once
14
15#include <array>
16#include <map>
17
18// base code includes
19#include <CellArray.h>
20#include <FlatJaggedArray.h>
21#include <Wrapper.h>
22
23namespace ttk {
24
25 class ZeroSkeleton : public Debug {
26
27 public:
29
39 int buildVertexEdges(const SimplexId &vertexNumber,
40 const std::vector<std::array<SimplexId, 2>> &edgeList,
41 FlatJaggedArray &vertexEdges) const;
42
59 int buildVertexLinks(const FlatJaggedArray &vertexStars,
60 const std::vector<std::array<SimplexId, 3>> &cellEdges,
61 const std::vector<std::array<SimplexId, 2>> &edgeList,
62 FlatJaggedArray &vertexLinks) const;
63
82 const FlatJaggedArray &vertexStars,
83 const std::vector<std::array<SimplexId, 4>> &cellTriangles,
84 const std::vector<std::array<SimplexId, 3>> &triangleList,
85 FlatJaggedArray &vertexLinks) const;
86
98 const SimplexId &vertexNumber,
99 FlatJaggedArray &vertexNeighbors,
100 const std::vector<std::array<SimplexId, 2>> &edgeList) const;
101
113 int buildVertexStars(const SimplexId &vertexNumber,
114 const CellArray &cellArray,
115 FlatJaggedArray &vertexStars) const;
116 };
117} // namespace ttk
CellArray generic array of cells
Minimalist debugging class.
Definition Debug.h:88
Replacement for std::vector<std::vector<SimplexId>>
ZeroSkeleton processing package.
int buildVertexEdges(const SimplexId &vertexNumber, const std::vector< std::array< SimplexId, 2 > > &edgeList, FlatJaggedArray &vertexEdges) const
int buildVertexStars(const SimplexId &vertexNumber, const CellArray &cellArray, FlatJaggedArray &vertexStars) const
int buildVertexLinks(const FlatJaggedArray &vertexStars, const std::vector< std::array< SimplexId, 3 > > &cellEdges, const std::vector< std::array< SimplexId, 2 > > &edgeList, FlatJaggedArray &vertexLinks) const
int buildVertexNeighbors(const SimplexId &vertexNumber, FlatJaggedArray &vertexNeighbors, const std::vector< std::array< SimplexId, 2 > > &edgeList) const
The Topology ToolKit.
int SimplexId
Identifier type for simplices of any dimension.
Definition DataTypes.h:22