aimstil  5.0.5
til::Remove_indexed_graph_vertices< TIndexCollection > Class Template Reference

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

#include <cathier/mesh_decimation.h>

Public Types

typedef MeshVertexNodeX< std::size_t > VertexNode
 
typedef MeshFaceNodeX< VertexNodeFaceNode
 
typedef std::list< VertexNodeVertexNodeCollection
 
typedef std::list< FaceNodeFaceNodeCollection
 

Public Member Functions

bool complete () const
 Returns true if it has been able to remove all desired points. More...
 
unsigned int niter () const
 Number of iterations that has been necessary to remove all points or to reach a configuration where no more points can be removed. More...
 
unsigned int count () const
 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() (std::list< VertexNode > &graph_vertices, std::list< FaceNode > &graph_faces, TIndexCollection const &removed)
 

Detailed Description

template<typename TIndexCollection>
class til::Remove_indexed_graph_vertices< TIndexCollection >

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

This obviously assume that the graph nodes contains such an index.

Definition at line 1413 of file mesh_decimation.h.

Member Typedef Documentation

◆ FaceNode

template<typename TIndexCollection>
typedef MeshFaceNodeX<VertexNode> til::Remove_indexed_graph_vertices< TIndexCollection >::FaceNode

Definition at line 1417 of file mesh_decimation.h.

◆ FaceNodeCollection

template<typename TIndexCollection>
typedef std::list<FaceNode> til::Remove_indexed_graph_vertices< TIndexCollection >::FaceNodeCollection

Definition at line 1419 of file mesh_decimation.h.

◆ VertexNode

template<typename TIndexCollection>
typedef MeshVertexNodeX<std::size_t> til::Remove_indexed_graph_vertices< TIndexCollection >::VertexNode

Definition at line 1416 of file mesh_decimation.h.

◆ VertexNodeCollection

template<typename TIndexCollection>
typedef std::list<VertexNode> til::Remove_indexed_graph_vertices< TIndexCollection >::VertexNodeCollection

Definition at line 1418 of file mesh_decimation.h.

Member Function Documentation

◆ complete()

template<typename TIndexCollection>
bool til::Remove_indexed_graph_vertices< TIndexCollection >::complete ( ) const
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 1426 of file mesh_decimation.h.

◆ count()

template<typename TIndexCollection>
unsigned int til::Remove_indexed_graph_vertices< TIndexCollection >::count ( ) const
inline

Returns the number of points that have been effectively removed.

Definition at line 1433 of file mesh_decimation.h.

◆ niter()

template<typename TIndexCollection>
unsigned int til::Remove_indexed_graph_vertices< TIndexCollection >::niter ( ) const
inline

Number of iterations that has been necessary to remove all points or to reach a configuration where no more points can be removed.

Definition at line 1430 of file mesh_decimation.h.

◆ operator()()

template<typename TIndexCollection>
void til::Remove_indexed_graph_vertices< TIndexCollection >::operator() ( std::list< VertexNode > &  graph_vertices,
std::list< FaceNode > &  graph_faces,
TIndexCollection const &  removed 
)
inline
Parameters
[in]removed1 if wished to be removed, 0 otherwise.

Definition at line 1441 of file mesh_decimation.h.

◆ removed()

template<typename TIndexCollection>
std::vector<unsigned char> const& til::Remove_indexed_graph_vertices< TIndexCollection >::removed ( )
inline

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

Definition at line 1436 of file mesh_decimation.h.


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