aimstil  5.0.5
til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection > Class Template Reference

Remove vertices from a mesh, given a set of index. More...

#include <cathier/mesh_decimation.h>

Public Types

typedef Remove_indexed_graph_vertices< TIndexCollection >::VertexNodeCollection VertexNodeCollection
 
typedef Remove_indexed_graph_vertices< TIndexCollection >::FaceNodeCollection FaceNodeCollection
 

Public Member Functions

Remove_indexed_graph_vertices< TIndexCollection > & remover ()
 
bool complete ()
 Returns true if it has been able to remove all desired points. More...
 
unsigned int count ()
 Returns the number of points that have been effectively removed. More...
 
std::vector< unsigned char > const & removed ()
 Returns a binary index of those points who have been removed. More...
 
void operator() (TVertexCollection const &vertices, TFaceCollection const &faces, TCNeighborhoods const &neighc, TIndexCollection const &removed, TVertexCollection &verticesOut, TFaceCollection &facesOut)
 

Detailed Description

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
class til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >

Remove vertices from a mesh, given a set of index.

Definition at line 1518 of file mesh_decimation.h.

Member Typedef Documentation

◆ FaceNodeCollection

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
typedef Remove_indexed_graph_vertices<TIndexCollection>::FaceNodeCollection til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >::FaceNodeCollection

Definition at line 1522 of file mesh_decimation.h.

◆ VertexNodeCollection

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
typedef Remove_indexed_graph_vertices<TIndexCollection>::VertexNodeCollection til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >::VertexNodeCollection

Definition at line 1521 of file mesh_decimation.h.

Member Function Documentation

◆ complete()

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
bool til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >::complete ( )
inline

Returns true if it has been able to remove all desired points.

NB: it is very frequent that due to topology constraints on the mesh, some points could not have been removed.

Definition at line 1530 of file mesh_decimation.h.

◆ count()

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
unsigned int til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >::count ( )
inline

Returns the number of points that have been effectively removed.

Definition at line 1533 of file mesh_decimation.h.

◆ operator()()

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
void til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >::operator() ( TVertexCollection const &  vertices,
TFaceCollection const &  faces,
TCNeighborhoods const &  neighc,
TIndexCollection const &  removed,
TVertexCollection &  verticesOut,
TFaceCollection &  facesOut 
)
inline
Parameters
[in]removed1 if wished to be removed, 0 otherwise.

Definition at line 1540 of file mesh_decimation.h.

References til::list2graph_mesh_conversion(), and til::remove_vertices().

◆ removed()

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
std::vector<unsigned char> const& til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >::removed ( )
inline

Returns a binary index of those points who have been removed.

Definition at line 1536 of file mesh_decimation.h.

Referenced by til::remove_vertices().

◆ remover()

template<typename TVertexCollection, typename TFaceCollection, typename TCNeighborhoods, typename TIndexCollection>
Remove_indexed_graph_vertices<TIndexCollection>& til::Remove_indexed_vertices< TVertexCollection, TFaceCollection, TCNeighborhoods, TIndexCollection >::remover ( )
inline

Definition at line 1525 of file mesh_decimation.h.


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