Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::MeshModifierAddCellsArgs Class Reference

Arguments for IMeshModifier::addCells(). More...

#include <arcane/core/IMeshModifier.h>

Collaboration diagram for Arcane::MeshModifierAddCellsArgs:

Public Member Functions

 MeshModifierAddCellsArgs (Integer nb_cell, Int64ConstArrayView cell_infos)
 MeshModifierAddCellsArgs (Integer nb_cell, Int64ConstArrayView cell_infos, Int32ArrayView cell_lids)
Int32 nbCell () const
Int64ConstArrayView cellInfos () const
Int32ArrayView cellLocalIds () const
void setAllowBuildFaces (bool v)
 Indicates whether associated faces are allowed to be built.
bool isAllowBuildFaces () const

Private Attributes

Int32 m_nb_cell = 0
Int64ConstArrayView m_cell_infos
Int32ArrayView m_cell_lids
 Returns, list of localIds() of the created cells.
bool m_is_allow_build_faces = true

Detailed Description

Arguments for IMeshModifier::addCells().

The format of cellsInfos() is identical to that of the IMesh::allocateCells() method. If cellsLocalIds() is not empty, it will contain the local IDs of the created cells.

If an added cell has the same uniqueId() as an existing cell, the existing cell is kept as is and nothing happens.

The created cells are considered to belong to this subdomain. If this is not the case, their ownership must be modified afterwards.

By default, when adding cells, if the associated faces do not exist, they are created automatically. This is only possible in sequential mode. It is possible to disable this by calling setAllowBuildFaces(). In parallel, the value of isAllowBuildFaces() is ignored.

Definition at line 57 of file IMeshModifier.h.

Constructor & Destructor Documentation

◆ MeshModifierAddCellsArgs() [1/2]

Arcane::MeshModifierAddCellsArgs::MeshModifierAddCellsArgs ( Integer nb_cell,
Int64ConstArrayView cell_infos )
inline

Definition at line 61 of file IMeshModifier.h.

◆ MeshModifierAddCellsArgs() [2/2]

Arcane::MeshModifierAddCellsArgs::MeshModifierAddCellsArgs ( Integer nb_cell,
Int64ConstArrayView cell_infos,
Int32ArrayView cell_lids )
inline

Definition at line 66 of file IMeshModifier.h.

Member Function Documentation

◆ cellInfos()

Int64ConstArrayView Arcane::MeshModifierAddCellsArgs::cellInfos ( ) const
inline

Definition at line 76 of file IMeshModifier.h.

◆ cellLocalIds()

Int32ArrayView Arcane::MeshModifierAddCellsArgs::cellLocalIds ( ) const
inline

Definition at line 77 of file IMeshModifier.h.

◆ isAllowBuildFaces()

bool Arcane::MeshModifierAddCellsArgs::isAllowBuildFaces ( ) const
inline

Definition at line 81 of file IMeshModifier.h.

◆ nbCell()

Int32 Arcane::MeshModifierAddCellsArgs::nbCell ( ) const
inline

Definition at line 75 of file IMeshModifier.h.

◆ setAllowBuildFaces()

void Arcane::MeshModifierAddCellsArgs::setAllowBuildFaces ( bool v)
inline

Indicates whether associated faces are allowed to be built.

Definition at line 80 of file IMeshModifier.h.

Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells2D(), and Arcane::CartesianMeshCoarsening2::_createCoarseCells3D().

Here is the caller graph for this function:

Member Data Documentation

◆ m_cell_infos

Int64ConstArrayView Arcane::MeshModifierAddCellsArgs::m_cell_infos
private

Definition at line 86 of file IMeshModifier.h.

◆ m_cell_lids

Int32ArrayView Arcane::MeshModifierAddCellsArgs::m_cell_lids
private

Returns, list of localIds() of the created cells.

Definition at line 88 of file IMeshModifier.h.

◆ m_is_allow_build_faces

bool Arcane::MeshModifierAddCellsArgs::m_is_allow_build_faces = true
private

Definition at line 89 of file IMeshModifier.h.

◆ m_nb_cell

Int32 Arcane::MeshModifierAddCellsArgs::m_nb_cell = 0
private

Definition at line 85 of file IMeshModifier.h.


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