#include <t4mesh_default_point_container.h>
Public Types | |
typedef M | mesh_type |
typedef mesh_type::math_types | math_types |
typedef math_types::vector3_type | value_type |
Public Member Functions | |
default_point_container (mesh_type *mesh) | |
value_type & | operator[] (unsigned int const &idx) |
value_type const & | operator[] (unsigned int const &idx) const |
void | clear () |
size_t | size () const |
void | resize (size_t) |
Public Attributes | |
mesh_type * | m_mesh |
Default Point Container. This utility class can be used to make the coordniates of the nodes in a tetrahedra mesh appear as a point container, i.e. as though the coordinates are stored as
std::vector<vector3_type> coordinates;
and accesses as
coordinates[node->idx()]
instead of
node->m_coord
Many algoritms in OpenTissue have been implemented in such a way that they do not rely on nodes to have a m_coord member. Instead coordinates are passed as point containers. This utility make it convenient to use these algorithms on nodes where coordinates are stored in m_coord member.
typedef mesh_type::math_types OpenTissue::t4mesh::default_point_container< M >::math_types |
typedef M OpenTissue::t4mesh::default_point_container< M >::mesh_type |
typedef math_types::vector3_type OpenTissue::t4mesh::default_point_container< M >::value_type |
OpenTissue::t4mesh::default_point_container< M >::default_point_container | ( | mesh_type * | mesh | ) | [inline] |
void OpenTissue::t4mesh::default_point_container< M >::clear | ( | ) | [inline] |
value_type const& OpenTissue::t4mesh::default_point_container< M >::operator[] | ( | unsigned int const & | idx | ) | const [inline] |
value_type& OpenTissue::t4mesh::default_point_container< M >::operator[] | ( | unsigned int const & | idx | ) | [inline] |
void OpenTissue::t4mesh::default_point_container< M >::resize | ( | size_t | ) | [inline] |
size_t OpenTissue::t4mesh::default_point_container< M >::size | ( | ) | const [inline] |
mesh_type* OpenTissue::t4mesh::default_point_container< M >::m_mesh |