Public Types | Public Member Functions | Protected Attributes

OpenTissue::t4mesh::T4BoundaryFaces< M, F > Class Template Reference

#include <t4mesh_t4boundary_faces.h>

List of all members.

Public Types

typedef M mesh_type
typedef F face_traits
typedef T4Face< M, Fface_type
typedef std::list< face_typeface_container
typedef face_container::iterator face_iterator
typedef
face_container::const_iterator 
const_face_iterator

Public Member Functions

face_iterator begin ()
face_iterator end ()
const_face_iterator begin () const
const_face_iterator end () const
 T4BoundaryFaces ()
 T4BoundaryFaces (mesh_type &mesh)

Protected Attributes

face_container m_faces
 Container of extrated boundary faces.

Detailed Description

template<class M, typename F>
class OpenTissue::t4mesh::T4BoundaryFaces< M, F >

Tetrahedra Mesh Boundary Faces. Note that if subsequent changes are made to the t4mesh are not reflected in the faces stored in this class. Meaning that a new face-queury must be initiated everytime the t4mesh changes its topology.

Example of usage:

typedef t4mesh<...> MyMeshType; MyMeshType mymesh; ... class MyFaceTraits : public DefaultFaceTraits { public: Color m_color; ... }; typedef T4BoundaryFaces<MyMeshType,MyFaceTraits> MyBoundaryFaces; MyBoundaryFaces bounday(mymesh); for(MyBoundaryFaces::face_iterator face=boundary.begin();face!=boundary.end();++face) { face->m_color = Color::white; std::cout << face->idx0() << std::endl; }


Member Typedef Documentation

template<class M, typename F>
typedef face_container::const_iterator OpenTissue::t4mesh::T4BoundaryFaces< M, F >::const_face_iterator
template<class M, typename F>
typedef std::list<face_type> OpenTissue::t4mesh::T4BoundaryFaces< M, F >::face_container
template<class M, typename F>
typedef face_container::iterator OpenTissue::t4mesh::T4BoundaryFaces< M, F >::face_iterator
template<class M, typename F>
typedef F OpenTissue::t4mesh::T4BoundaryFaces< M, F >::face_traits
template<class M, typename F>
typedef T4Face<M,F> OpenTissue::t4mesh::T4BoundaryFaces< M, F >::face_type
template<class M, typename F>
typedef M OpenTissue::t4mesh::T4BoundaryFaces< M, F >::mesh_type

Constructor & Destructor Documentation

template<class M, typename F>
OpenTissue::t4mesh::T4BoundaryFaces< M, F >::T4BoundaryFaces (  )  [inline]

Default Constructor. Constructs an empty set of boundary faces.

template<class M, typename F>
OpenTissue::t4mesh::T4BoundaryFaces< M, F >::T4BoundaryFaces ( mesh_type mesh  )  [inline]

Specialezed Constructor Traverses the tetrahedral mesh, and extracts all boundary faces. A boundary face is a face that only have one neighboring tetrahedron. A face inside the tetrahedral mesh will have exactly two neighboring tetrahedra.

Face node indices are given in CCW order.

Parameters:
mesh The tetrahedral mesh from which boundary faces are extracted.

Member Function Documentation

template<class M, typename F>
face_iterator OpenTissue::t4mesh::T4BoundaryFaces< M, F >::begin (  )  [inline]
template<class M, typename F>
const_face_iterator OpenTissue::t4mesh::T4BoundaryFaces< M, F >::begin (  )  const [inline]
template<class M, typename F>
const_face_iterator OpenTissue::t4mesh::T4BoundaryFaces< M, F >::end (  )  const [inline]
template<class M, typename F>
face_iterator OpenTissue::t4mesh::T4BoundaryFaces< M, F >::end (  )  [inline]

Member Data Documentation

template<class M, typename F>
face_container OpenTissue::t4mesh::T4BoundaryFaces< M, F >::m_faces [protected]

Container of extrated boundary faces.


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