Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SurfaceExtractor Class Reference

A class to generate the external surface of a pml to use it just add the cells among which you want to extract an external surface designed for the case where a pml represent several object and thus there are several surface to extract for an exemple of use see SofaSimulator.cpp. More...

#include <SurfaceExtractor.h>

Public Member Functions

void AddCell (Cell *c)
 try to add a cell in the surface extractor and do it if this cell is not in More...
 
void generateExternalSurface (StructuralComponent &surface, StructuralComponent &surfacePoints)
 generate the external surface More...
 
void init ()
 initialize the extractor More...
 
 SurfaceExtractor (PhysicalModel *pm)
 constructor More...
 
 ~SurfaceExtractor ()
 destructor More...
 

Private Member Functions

void equivalent (int size, unsigned int id[])
 check if equivalent of already existing facet More...
 

Private Attributes

std::vector< Facet * > facets
 vector with all the facets More...
 
PhysicalModelpm
 the physical model More...
 

Detailed Description

A class to generate the external surface of a pml to use it just add the cells among which you want to extract an external surface designed for the case where a pml represent several object and thus there are several surface to extract for an exemple of use see SofaSimulator.cpp.

Constructor & Destructor Documentation

SurfaceExtractor::SurfaceExtractor ( PhysicalModel pm)

constructor

SurfaceExtractor::~SurfaceExtractor ( )

destructor

Member Function Documentation

void SurfaceExtractor::AddCell ( Cell c)

try to add a cell in the surface extractor and do it if this cell is not in

void SurfaceExtractor::equivalent ( int  size,
unsigned int  id[] 
)
private

check if equivalent of already existing facet

void SurfaceExtractor::generateExternalSurface ( StructuralComponent surface,
StructuralComponent surfacePoints 
)

generate the external surface

Parameters
surfaceadd the cells of the surface in the component surface
surfacePointsadd the points of the surface in the component surfacePoints
void SurfaceExtractor::init ( )

initialize the extractor

Member Data Documentation

std::vector<Facet*> SurfaceExtractor::facets
private

vector with all the facets

PhysicalModel* SurfaceExtractor::pm
private

the physical model


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