VTK helper that processes the 1-skeleton (edges) of a data-set.
More...
#include <vtkOneSkeleton.h>
|
| vtkOneSkeleton () |
|
int | buildEdgeList (vtkDataSet *input, vector< pair< int, int > > &edgeList, const bool &isTriangulation=false) const |
|
int | buildEdgeLists (const vector< vector< long long int > > &cellArays, vector< vector< pair< int, int > > > &edgeLists) const |
|
int | buildEdgeStars (vtkDataSet *input, vector< vector< int > > &starList, vector< pair< int, int > > *edgeList=NULL, vector< vector< int > > *vertexStars=NULL, const bool &isTriangulation=false) const |
|
int | buildTriangulationEdgeList (vtkPolyData *input, vector< pair< int, int > > &edgeList) const |
|
int | buildTriangulationEdgeList (vtkUnstructuredGrid *input, vector< pair< int, int > > &edgeList) const |
|
int | buildTriangulationEdgeStars (vtkPolyData *input, vector< vector< int > > &starList, vector< pair< int, int > > *edgeList=NULL, vector< vector< int > > *vertexStars=NULL) const |
|
int | buildTriangulationEdgeStars (vtkUnstructuredGrid *input, vector< vector< int > > &starList, vector< pair< int, int > > *edgeList=NULL, vector< vector< int > > *vertexStars=NULL) const |
|
| Wrapper () |
|
| ~Wrapper () |
|
| Debug () |
|
virtual | ~Debug () |
|
virtual const int | dMsg (ostream &stream, string msg, const int &debugLevel=infoMsg) const |
|
const int | err (const string msg, const int &debugLevel=infoMsg) const |
|
const int | msg (const char *msg, const int &debugLevel=infoMsg) const |
|
virtual const int | setDebugLevel (const int &debugLevel) |
|
int | setThreadNumber (const int threadNumber) |
|
int | setWrapper (const Wrapper *wrapper) |
|
VTK helper that processes the 1-skeleton (edges) of a data-set.
- Author
- Julien Tierny julie.nosp@m.n.ti.nosp@m.erny@.nosp@m.lip6.nosp@m..fr
- Date
- November 2014.
- See also
- vtkTriangulation
-
wtfit::Triangulation
-
wtfit::OneSkeleton
vtkOneSkeleton::vtkOneSkeleton |
( |
| ) |
|
int vtkOneSkeleton::buildEdgeList |
( |
vtkDataSet * |
input, |
|
|
vector< pair< int, int > > & |
edgeList, |
|
|
const bool & |
isTriangulation = false |
|
) |
| const |
Compute the list of edges of a vtkDataSet.
- Parameters
-
input | Input data-set. |
edgeList | Output edge list (each entry is an ordered pair of vertex identifiers). |
isTriangulation | Optional flag that speeds up computation if the input mesh is indeed a valid triangulation (unspecified behavior otherwise). |
- Returns
- Returns 0 upon success, negative values otherwise.
int vtkOneSkeleton::buildEdgeLists |
( |
const vector< vector< long long int > > & |
cellArays, |
|
|
vector< vector< pair< int, int > > > & |
edgeLists |
|
) |
| const |
|
inline |
Compute the lists of edges of multiple triangulations (unspecified behavior if the input meshes are not valid triangulations).
- Parameters
-
input | Input vtkUnstructuredGrid object. |
edgeList | Output edge list (each entry is an ordered pair of vertex identifiers). |
- Returns
- Returns 0 upon success, negative values otherwise.
int vtkOneSkeleton::buildEdgeStars |
( |
vtkDataSet * |
input, |
|
|
vector< vector< int > > & |
starList, |
|
|
vector< pair< int, int > > * |
edgeList = NULL , |
|
|
vector< vector< int > > * |
vertexStars = NULL , |
|
|
const bool & |
isTriangulation = false |
|
) |
| const |
Compute the 3-star of all the edges of a vtkDataSet (for each edge, list of the 3-dimensional cells connected to it).
- Parameters
-
input | Input data-set. |
starList | Output list of 3-stars. The size of this vector will be equal to the number of edges in the mesh. Each entry stores a vector that lists the identifiers of all 3-dimensional cells connected to the entry's edge. |
edgeList | Optional list of edges. If NULL, the function will compute this list anyway and free the related memory upon return. If not NULL but pointing to an empty vector, the function will fill this empty vector (useful if this list needs to be used later on by the calling program). If not NULL but pointing to a non-empty vector, this function will use this vector as internal edge list. If this vector is not empty but incorrect, the behavior is unspecified. |
vertexStars | Optional list of vertex stars (list of 3-dimensional cells connected to each vertex). If NULL, the function will compute this list anyway and free the related memory upon return. If not NULL but pointing to an empty vector, the function will fill this empty vector (useful if this list needs to be used later on by the calling program). If not NULL but pointing to a non-empty vector, this function will use this vector as internal vertex star list. If this vector is not empty but incorrect, the behavior is unspecified. |
isTriangulation | Optional flag that speeds up computation if the input mesh is indeed a valid triangulation (unspecified behavior otherwise). |
- Returns
- Returns 0 upon success, negative values otherwise.
int vtkOneSkeleton::buildTriangulationEdgeList |
( |
vtkPolyData * |
input, |
|
|
vector< pair< int, int > > & |
edgeList |
|
) |
| const |
|
inline |
Compute the list of edges of a triangulation represented by a vtkPolyData object (unspecified behavior if the input mesh is not a triangulation).
- Parameters
-
input | Input vtkPolyData object. |
edgeList | Output edge list (each entry is an ordered pair of vertex identifiers). |
- Returns
- Returns 0 upon success, negative values otherwise.
int vtkOneSkeleton::buildTriangulationEdgeList |
( |
vtkUnstructuredGrid * |
input, |
|
|
vector< pair< int, int > > & |
edgeList |
|
) |
| const |
|
inline |
Compute the list of edges of a triangulation represented by a vtkUnstructuredGrid object (unspecified behavior if the input mesh is not a triangulation).
- Parameters
-
input | Input vtkUnstructuredGrid object. |
edgeList | Output edge list (each entry is an ordered pair of vertex identifiers). |
- Returns
- Returns 0 upon success, negative values otherwise.
int vtkOneSkeleton::buildTriangulationEdgeStars |
( |
vtkPolyData * |
input, |
|
|
vector< vector< int > > & |
starList, |
|
|
vector< pair< int, int > > * |
edgeList = NULL , |
|
|
vector< vector< int > > * |
vertexStars = NULL |
|
) |
| const |
|
inline |
Compute the 3-star of all the edges of a vtkPolyData (for each edge, list of the 3-dimensional cells connected to it). Unspecified behavior if the input mesh is not a valid triangulation).
- Parameters
-
input | Input data-set. |
starList | Output list of 3-stars. The size of this vector will be equal to the number of edges in the mesh. Each entry stores a vector that lists the identifiers of all 3-dimensional cells connected to the entry's edge. |
edgeList | Optional list of edges. If NULL, the function will compute this list anyway and free the related memory upon return. If not NULL but pointing to an empty vector, the function will fill this empty vector (useful if this list needs to be used later on by the calling program). If not NULL but pointing to a non-empty vector, this function will use this vector as internal edge list. If this vector is not empty but incorrect, the behavior is unspecified. |
vertexStars | Optional list of vertex stars (list of 3-dimensional cells connected to each vertex). If NULL, the function will compute this list anyway and free the related memory upon return. If not NULL but pointing to an empty vector, the function will fill this empty vector (useful if this list needs to be used later on by the calling program). If not NULL but pointing to a non-empty vector, this function will use this vector as internal vertex star list. If this vector is not empty but incorrect, the behavior is unspecified. |
- Returns
- Returns 0 upon success, negative values otherwise.
int vtkOneSkeleton::buildTriangulationEdgeStars |
( |
vtkUnstructuredGrid * |
input, |
|
|
vector< vector< int > > & |
starList, |
|
|
vector< pair< int, int > > * |
edgeList = NULL , |
|
|
vector< vector< int > > * |
vertexStars = NULL |
|
) |
| const |
|
inline |
Compute the 3-star of all the edges of a vtkUnstructuredGrid (for each edge, list of the 3-dimensional cells connected to it). Unspecified behavior if the input mesh is not a valid triangulation).
- Parameters
-
input | Input data-set. |
starList | Output list of 3-stars. The size of this vector will be equal to the number of edges in the mesh. Each entry stores a vector that lists the identifiers of all 3-dimensional cells connected to the entry's edge. |
edgeList | Optional list of edges. If NULL, the function will compute this list anyway and free the related memory upon return. If not NULL but pointing to an empty vector, the function will fill this empty vector (useful if this list needs to be used later on by the calling program). If not NULL but pointing to a non-empty vector, this function will use this vector as internal edge list. If this vector is not empty but incorrect, the behavior is unspecified. |
vertexStars | Optional list of vertex stars (list of 3-dimensional cells connected to each vertex). If NULL, the function will compute this list anyway and free the related memory upon return. If not NULL but pointing to an empty vector, the function will fill this empty vector (useful if this list needs to be used later on by the calling program). If not NULL but pointing to a non-empty vector, this function will use this vector as internal vertex star list. If this vector is not empty but incorrect, the behavior is unspecified. |
- Returns
- Returns 0 upon success, negative values otherwise.
The documentation for this class was generated from the following files: