Helper class for merging two cells. More...
#include <arcane/mesh/CellMerger.h>
Public Member Functions | |
| CellMerger (ITraceMng *) | |
| Constructor. | |
| ~CellMerger ()=default | |
| Destructor. | |
| void | merge (Cell i_cell_1, Cell i_cell_2) |
| Merges the two cells i_cell_1 and i_cell_2. | |
| ItemInternal * | getItemInternal (ItemInternal *i_cell_1, ItemInternal *i_cell_2) |
| Returns the ItemInternal used by the cell after merging. | |
| Cell | getCell (Cell i_cell_1, Cell i_cell_2) |
| Returns the cell used by the cell after merging. | |
Private Types | |
| enum | _Type { NotMergeable = 0 , Hexahedron = 1 , Pyramid = 2 , Pentahedron = 3 , Quadrilateral = 10 , Triangle = 11 } |
Private Member Functions | |
| String | _typeName (const _Type &t) const |
| Returns the name associated with the cell type. | |
| _Type | _getCellType (const Integer &internal_cell_type) const |
| Determines the cell _Type based on its "ItemInternal" type. | |
| _Type | _promoteType (const _Type &t1, const _Type &t2) const |
| Determines the cell type resulting from the merging of two given types. | |
Helper class for merging two cells.
Definition at line 34 of file CellMerger.h.
|
private |
We define a local enumerated type in order to perform arithmetic operations (see
Definition at line 90 of file CellMerger.h.
|
inline |
Constructor.
Definition at line 39 of file CellMerger.h.
|
private |
|
private |
Determines the cell type resulting from the merging of two given types.
| t1 | the first type |
| t2 | the second type |
Definition at line 1141 of file CellMerger.cc.
References _typeName(), and ARCANE_FATAL.
Referenced by getCell().
Returns the name associated with the cell type.
| t | the type |
Definition at line 1091 of file CellMerger.cc.
Referenced by _promoteType().
Returns the cell used by the cell after merging.
| i_cell_1 | a pointer to the first cell |
| i_cell_2 | a pointer to the second cell |
Definition at line 1194 of file CellMerger.cc.
References _getCellType(), _promoteType(), ARCANE_FATAL, and Arcane::Item::type().
Referenced by getItemInternal(), and ~CellMerger().
| ItemInternal * Arcane::mesh::CellMerger::getItemInternal | ( | ItemInternal * | i_cell_1, |
| ItemInternal * | i_cell_2 ) |
Returns the ItemInternal used by the cell after merging.
| i_cell_1 | a pointer to the first cell |
| i_cell_2 | a pointer to the second cell |
Definition at line 1238 of file CellMerger.cc.
References getCell().
Referenced by ~CellMerger().
Merges the two cells i_cell_1 and i_cell_2.
| i_cell_1 | a pointer to the first cell |
| i_cell_2 | a pointer to the second cell |
Definition at line 1163 of file CellMerger.cc.
References _getCellType(), ARCANE_FATAL, Arcane::Item::itemFamily(), Arcane::IItemFamily::mesh(), and Arcane::Item::type().
Referenced by ~CellMerger().