Facet Class Reference

Stores information about neighboring elements. More...

#include <mesh.h>

List of all members.

Public Types

enum  Type { INNER = 0, OUTER }
 

Maximum number of sons on a facet.

More...

Public Member Functions

 Facet (EMode2D mode)
 Facet (const Facet &o)
virtual ~Facet ()
virtual Facetcopy ()
virtual Facetcopy_base ()
void set_left_info (Word_t elem_id, int face_num=-1)
void set_right_info (Word_t elem_id, int face_num=-1)
bool ced (Word_t idx, int iface)
virtual void dump ()

Public Attributes

Type type
EMode2D mode
 type of the facet
Word_t left
 mode of the facet (TRI, QUAD)
Word_t right
 ID of an element on the "left".
signed left_face_num:4
 ID of an element or a boundary on the "right" (depending on the type of the facet).
signed right_face_num:4
 local facet number with respect to left element facet numbering (-1 = not set).
unsigned lactive:1
 local facet number with respect to right element facet numbering (-1 = not set). Only for INNER facets.
unsigned ractive:1
 information for the left is active; 1 - active; 0 - inactive
unsigned ref_mask:2
 information for the right is active; 1 - active; 0 - inactive
Word_t parent
 how is the facet divided (0 - not divived, 1 - horz, 2 - vert, 3 - both)
Word_t sons [MAX_SONS]
 ID of the parent facet.

Static Public Attributes

static const int MAX_SONS = 4

Detailed Description

Stores information about neighboring elements.


Member Enumeration Documentation

Maximum number of sons on a facet.

Enumerator:
INNER 
OUTER 

Constructor & Destructor Documentation

Facet::Facet ( EMode2D  mode  ) 
Facet::Facet ( const Facet o  ) 
Facet::~Facet (  )  [virtual]

Member Function Documentation

bool Facet::ced ( Word_t  idx,
int  iface 
)
Returns:
TRUE if we have a constraint on the face
Parameters:
idx[in] - element ID
iface[in] - local face number on the element 'idx'
Facet * Facet::copy (  )  [virtual]
Facet * Facet::copy_base (  )  [virtual]
void Facet::dump (  )  [virtual]
void Facet::set_left_info ( Word_t  elem_id,
int  face_num = -1 
) [inline]
void Facet::set_right_info ( Word_t  elem_id,
int  face_num = -1 
) [inline]

Member Data Documentation

unsigned Facet::lactive

local facet number with respect to right element facet numbering (-1 = not set). Only for INNER facets.

Word_t Facet::left

mode of the facet (TRI, QUAD)

ID of an element or a boundary on the "right" (depending on the type of the facet).

const int Facet::MAX_SONS = 4 [static]

type of the facet

Word_t Facet::parent

how is the facet divided (0 - not divived, 1 - horz, 2 - vert, 3 - both)

unsigned Facet::ractive

information for the left is active; 1 - active; 0 - inactive

unsigned Facet::ref_mask

information for the right is active; 1 - active; 0 - inactive

Word_t Facet::right

ID of an element on the "left".

local facet number with respect to left element facet numbering (-1 = not set).

ID of the parent facet.


The documentation for this class was generated from the following files:
Generated on Fri Sep 3 09:22:20 2010 for Hermes3D Library: Real Version by  doxygen 1.6.3