Class facet to hold and compare facet This class is used for the extraction of external surface during importation of simulator specific files. More...
#include <Facet.h>
Public Member Functions | |
void | debug () |
print on stdout More... | |
void | debug () |
print on stdout More... | |
Facet (unsigned int size, unsigned int id[]) | |
create a facet using size nodes and their indexes More... | |
Facet (unsigned int size, unsigned int id[]) | |
create a facet using size nodes and their indexes More... | |
Cell * | getCell (PhysicalModel *) const |
return the corresponding PML cell More... | |
Cell * | getCell (PhysicalModel *) const |
return the corresponding PML cell More... | |
unsigned int | getUsed () const |
get the number of time it is being used More... | |
unsigned int | getUsed () const |
get the number of time it is being used More... | |
bool | testEquivalence (unsigned int size, unsigned int id[]) |
if it is the same (equivalent) facet, increment used (return true if equivalence) More... | |
bool | testEquivalence (unsigned int size, unsigned int id[]) |
if it is the same (equivalent) facet, increment used (return true if equivalence) More... | |
virtual | ~Facet () |
destructor More... | |
virtual | ~Facet () |
destructor More... | |
Private Member Functions | |
bool | isIn (unsigned int) const |
is this atom index present in this facet (no check on the order) More... | |
bool | isIn (unsigned int) const |
is this atom index present in this facet (no check on the order) More... | |
Private Attributes | |
unsigned int * | id |
the facet atom indexes More... | |
unsigned int | size |
nr of atoms composing the facet (3 = triangle, 4 = quad) More... | |
unsigned int | used |
nr of times the facet is used More... | |
Class facet to hold and compare facet This class is used for the extraction of external surface during importation of simulator specific files.
Class facet to old and compare facet.
Facet::Facet | ( | unsigned int | size, |
unsigned int | id[] | ||
) |
|
virtual |
destructor
References id.
Facet::Facet | ( | unsigned int | size, |
unsigned int | id[] | ||
) |
create a facet using size nodes and their indexes
|
virtual |
destructor
void Facet::debug | ( | ) |
print on stdout
Cell* Facet::getCell | ( | PhysicalModel * | ) | const |
return the corresponding PML cell
Cell * Facet::getCell | ( | PhysicalModel * | pm | ) | const |
return the corresponding PML cell
References a, StructuralComponent::addStructureIfNotIn(), PhysicalModel::getAtom(), StructureProperties::QUAD, size, and StructureProperties::TRIANGLE.
unsigned int Facet::getUsed | ( | ) | const |
get the number of time it is being used
unsigned int Facet::getUsed | ( | ) | const |
get the number of time it is being used
References used.
|
private |
is this atom index present in this facet (no check on the order)
|
private |
is this atom index present in this facet (no check on the order)
References size.
Referenced by testEquivalence().
bool Facet::testEquivalence | ( | unsigned int | size, |
unsigned int | id[] | ||
) |
if it is the same (equivalent) facet, increment used (return true if equivalence)
bool Facet::testEquivalence | ( | unsigned int | size, |
unsigned int | id[] | ||
) |
|
private |
the facet atom indexes
Referenced by ~Facet().
|
private |
nr of atoms composing the facet (3 = triangle, 4 = quad)
Referenced by debug(), Facet(), getCell(), isIn(), and testEquivalence().
|
private |
nr of times the facet is used
Referenced by debug(), Facet(), getUsed(), and testEquivalence().