Computer Assited Medical Intervention Tool Kit  version 5.0
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>

+ Collaboration diagram for Facet:

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.

◆ ~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

◆ debug() [2/2]

void Facet::debug ( )

print on stdout

References size, and used.

◆ getCell() [1/2]

Cell* Facet::getCell ( PhysicalModel ) const

return the corresponding PML cell

◆ getCell() [2/2]

Cell * Facet::getCell ( PhysicalModel pm) const

return the corresponding PML cell

References a, StructuralComponent::addStructureIfNotIn(), PhysicalModel::getAtom(), StructureProperties::QUAD, size, and StructureProperties::TRIANGLE.

+ Here is the call graph for this function:

◆ getUsed() [1/2]

unsigned int Facet::getUsed ( ) const

get the number of time it is being used

◆ getUsed() [2/2]

unsigned int Facet::getUsed ( ) const

get the number of time it is being used

References used.

◆ isIn() [1/2]

bool Facet::isIn ( unsigned int  ) const
private

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

◆ isIn() [2/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().

+ Here is the caller graph for this function:

◆ 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)

◆ 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)

References isIn(), size, and used.

+ Here is the call graph for this function:

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(), isIn(), and testEquivalence().

◆ 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: