Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Facet Class Reference

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...
 
CellgetCell (PhysicalModel *) const
 return the corresponding PML cell More...
 
CellgetCell (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Facet() [1/2]

Facet::Facet ( unsigned int  size,
unsigned int  id[] 
)

create a facet using size nodes and their indexes

References size, and used.

Referenced by PMLTransform::equivalent().

◆ ~Facet() [1/2]

Facet::~Facet ( )
virtual

destructor

References id.

◆ Facet() [2/2]

Facet::Facet ( unsigned int  size,
unsigned int  id[] 
)

create a facet using size nodes and their indexes

◆ ~Facet() [2/2]

virtual Facet::~Facet ( )
virtual

destructor

Member Function Documentation

◆ debug() [1/2]

void Facet::debug ( )

print on stdout

References size, and used.

◆ debug() [2/2]

void Facet::debug ( )

print on stdout

◆ getCell() [1/2]

Cell * Facet::getCell ( PhysicalModel pm) const

◆ getCell() [2/2]

Cell* Facet::getCell ( PhysicalModel ) const

return the corresponding PML cell

◆ getUsed() [1/2]

unsigned int Facet::getUsed ( ) const

get the number of time it is being used

References used.

◆ getUsed() [2/2]

unsigned int Facet::getUsed ( ) const

get the number of time it is being used

◆ isIn() [1/2]

bool Facet::isIn ( unsigned int  index) const
private

is this atom index present in this facet (no check on the order)

References size.

Referenced by testEquivalence().

◆ isIn() [2/2]

bool Facet::isIn ( unsigned  int) const
private

is this atom index present in this facet (no check on the order)

◆ testEquivalence() [1/2]

bool Facet::testEquivalence ( unsigned int  size,
unsigned int  id[] 
)

if it is the same (equivalent) facet, increment used (return true if equivalence)

References isIn(), and used.

◆ testEquivalence() [2/2]

bool Facet::testEquivalence ( unsigned int  size,
unsigned int  id[] 
)

if it is the same (equivalent) facet, increment used (return true if equivalence)

Member Data Documentation

◆ id

unsigned int * Facet::id
private

the facet atom indexes

Referenced by ~Facet().

◆ size

unsigned int Facet::size
private

nr of atoms composing the facet (3 = triangle, 4 = quad)

Referenced by debug(), Facet(), getCell(), and isIn().

◆ used

unsigned int Facet::used
private

nr of times the facet is used

Referenced by debug(), Facet(), getUsed(), and testEquivalence().


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