Version: 5.1.6

INTERP_KERNEL.UnitTetraIntersectionBary Class Reference

#include <UnitTetraIntersectionBary.hxx>

Inheritance diagram for INTERP_KERNEL.UnitTetraIntersectionBary:
Inheritance graph

Public Member Functions

 UnitTetraIntersectionBary (bool isTetraInversed=false)
 Creates a ready-to-use tool.
void init (bool isTetraInversed=false)
 Initializes fields.
void addSide (const TransformedTriangle &triangle)
 Stores a part of triangle common with the unit tetrahedron.
bool getBary (double *baryCenter)
 Computes and return coordinates of barycentre.
double getVolume () const
 Returns volume of intersection.
virtual ~UnitTetraIntersectionBary ()
 Destructor clears coordinates of faces.

Private Member Functions

int addSideFaces ()
 Add faces of the intersection polyhedron formed on faces of the unit tetrahedron by sides of already added faces.
void setTriangleOnSide (int i)
 set corners of inherited TransformedTriangle as corners of i-th side of the Unit tetra. It is necessary to sort points of faces on sides of the unit tetrahedron using sortIntersectionPolygon(A)
void clearPolygons (bool andFaces=false)
 Free memory of polygons.

Private Attributes

double _int_volume
 volume of intersection
std::list< std::vector< double * > > _faces
 faces of intersection polyhedron
std::vector< std::vector
< double > > 
_polyNormals
bool _isTetraInversed

Constructor & Destructor Documentation

INTERP_KERNEL.UnitTetraIntersectionBary::UnitTetraIntersectionBary ( bool  isTetraInversed = false  ) 

Creates a ready-to-use tool.

INTERP_KERNEL.UnitTetraIntersectionBary::~UnitTetraIntersectionBary (  )  [virtual]

Destructor clears coordinates of faces.

References INTERP_KERNEL.UnitTetraIntersectionBary.clearPolygons().


Member Function Documentation

void INTERP_KERNEL.UnitTetraIntersectionBary::init ( bool  isTetraInversed = false  ) 
void INTERP_KERNEL.UnitTetraIntersectionBary::addSide ( const TransformedTriangle triangle  ) 
bool INTERP_KERNEL.UnitTetraIntersectionBary::getBary ( double baryCenter  ) 
double INTERP_KERNEL.UnitTetraIntersectionBary.getVolume (  )  const

Returns volume of intersection.

Return values:
double -

Reimplemented from INTERP_KERNEL.TransformedTriangle.

References INTERP_KERNEL.UnitTetraIntersectionBary._int_volume.

int INTERP_KERNEL.UnitTetraIntersectionBary::addSideFaces (  )  [private]
void INTERP_KERNEL.UnitTetraIntersectionBary::setTriangleOnSide ( int  i  )  [private]

set corners of inherited TransformedTriangle as corners of i-th side of the Unit tetra. It is necessary to sort points of faces on sides of the unit tetrahedron using sortIntersectionPolygon(A)

References INTERP_KERNEL.TransformedTriangle._coords.

void INTERP_KERNEL.UnitTetraIntersectionBary::clearPolygons ( bool  andFaces = false  )  [private]

Field Documentation

volume of intersection

std::list< std::vector< double* > > INTERP_KERNEL.UnitTetraIntersectionBary._faces [private]

faces of intersection polyhedron

std::vector< std::vector< double > > INTERP_KERNEL.UnitTetraIntersectionBary._polyNormals [private]