55 typedef std::pair<Mesh *, bool>
base;
72 class OPENMEEG_EXPORT
Interface:
public std::vector<OrientedMesh> {
82 Interface(
const std::string _name): name_(_name), outermost_(false) { }
84 const std::string
name()
const {
return name_; }
85 const bool &
outermost()
const {
return outermost_; }
86 void set_to_outermost();
87 bool contains_point(
const Vect3& p)
const;
88 bool check(
bool checked =
false);
93 for ( const_iterator omit = begin(); omit != end(); ++omit) {
94 nb += omit->mesh().nb_vertices();
102 for ( const_iterator omit = begin(); omit != end(); ++omit) {
103 nb += omit->mesh().nb_triangles();
111 for ( const_iterator omit = begin(); omit != end(); ++omit) {
113 triangles.insert(triangles.end(), tri.begin(), tri.end());
120 double compute_solid_angle(
const Vect3& p)
const;
std::pair< Mesh *, bool > base
const Mesh & mesh() const
access mesh
int orientation() const
orientation is +1 or -1 ?
std::vector< Interface > Interfaces
A vector of Interface is called Interfaces.
std::string name_
is "" by default
const std::string name() const
size_t nb_triangles() const
Interface()
Default Constructor.
OrientedMesh(Mesh &_mesh, bool _inside)
An Oriented Mesh is a mesh associated with a boolean stating if it is well oriented.
Interface(const std::string _name)
Constructor from a name.
VectPTriangle adjacent_triangles(const Triangle &t) const
OrientedMesh()
default constructors
Mesh::VectPTriangle VectPTriangle
bool outermost_
tell weather or not the interface touches the Air (Outermost) Domain.
Interface class An interface is a closed-shape composed of oriented meshes (here pointer to meshes) ...
const bool & outermost() const
std::vector< Triangle * > VectPTriangle
size_t nb_vertices() const