12#ifndef ARCANE_CORE_IMESHMODIFIER_H
13#define ARCANE_CORE_IMESHMODIFIER_H
18#include "arcane/core/Item.h"
57class MeshModifierAddCellsArgs
63 , m_cell_infos(cell_infos)
68 : MeshModifierAddCellsArgs(nb_cell, cell_infos)
75 Int32 nbCell()
const {
return m_nb_cell; }
81 bool isAllowBuildFaces()
const {
return m_is_allow_build_faces; }
89 bool m_is_allow_build_faces =
true;
98class MeshModifierAddFacesArgs
104 , m_face_infos(face_infos)
109 : MeshModifierAddFacesArgs(nb_face, face_infos)
116 Int32 nbFace()
const {
return m_nb_face; }
151 virtual void build() = 0;
291 virtual void refineItems() = 0;
292 virtual void coarsenItems() = 0;
293 virtual void coarsenItemsV2(
bool update_parent_flag) = 0;
294 virtual bool adapt() = 0;
297 virtual void addHChildrenCells(
Cell parent_cell,
Integer nb_cell,
300 virtual void addParentCellToCell(
Cell child,
Cell parent) = 0;
301 virtual void addChildCellToCell(
Cell parent,
Cell child) = 0;
303 virtual void addParentFaceToFace(
Face child,
Face parent) = 0;
304 virtual void addChildFaceToFace(
Face parent,
Face child) = 0;
306 virtual void addParentNodeToNode(
Node child,
Node parent) = 0;
307 virtual void addChildNodeToNode(
Node parent,
Node child) = 0;
341 virtual void endUpdate(
bool update_ghost_layer,
bool remove_old_ghost) = 0;
355 bool remove_old_ghost) = 0;
Declarations of Arcane's general types.
Base class for 1D data vectors.
Constant view of an array of type T.
Interface of a functor with argument.
Interface of a builder for "extraordinary" ghost cells.
Internal part of IMeshModifier.
Mesh modification interface.
virtual void updateGhostLayers()=0
Updates the ghost layer.
virtual void setDynamic(bool v)=0
Sets the property indicating whether the mesh can evolve.
virtual ARCANE_DEPRECATED_240 void addCells(ISerializer *buffer, Int32Array &cells_local_id)=0
Adds cells from the data contained in buffer.
virtual void removeCells(Int32ConstArrayView cells_local_id)=0
Removes cells.
virtual void addExtraGhostParticlesBuilder(IExtraGhostParticlesBuilder *builder)=0
Addition of the "extraordinary" ghost particle addition algorithm.
virtual void flagCellToRefine(Int32ConstArrayView cells_lids)=0
AMR.
virtual IMesh * mesh()=0
Associated mesh.
virtual void addNodes(Int64ConstArrayView nodes_uid, Int32ArrayView nodes_lid=Int32ArrayView())=0
Adds nodes.
virtual void addFaces(Integer nb_face, Int64ConstArrayView face_infos, Int32ArrayView face_lids=Int32ArrayView())=0
Adds faces.
virtual void removeExtraGhostParticlesBuilder(IExtraGhostParticlesBuilder *builder)=0
Removes the association with the builder instance.
virtual void removeDetachedCells(Int32ConstArrayView cells_local_id)=0
Removes detached cells.
virtual IMeshModifierInternal * _modifierInternalApi()=0
Internal API for Arcane.
virtual void detachCells(Int32ConstArrayView cells_local_id)=0
Detaches cells from the mesh.
virtual void addCells(Integer nb_cell, Int64ConstArrayView cell_infos, Int32ArrayView cells_lid=Int32ArrayView())=0
Adds cells.
virtual ARCANE_DEPRECATED_240 void addCells(ISerializer *buffer)=0
Adds cells from the data contained in buffer.
virtual void mergeMeshes(ConstArrayView< IMesh * > meshes)=0
Merges the meshes of meshes with the current mesh.
virtual void endUpdate()=0
Notifies the instance that mesh modification is finished.
virtual void addExtraGhostCellsBuilder(IExtraGhostCellsBuilder *builder)=0
addition of the "extraordinary" ghost cells addition algorithm.
virtual void clearItems()=0
Deletes all entities of all families in this mesh.
virtual void removeExtraGhostCellsBuilder(IExtraGhostCellsBuilder *builder)=0
Removes the association with the builder instance.
virtual void updateGhostLayerFromParent(Array< Int64 > &ghost_cell_to_refine, Array< Int64 > &ghost_cell_to_coarsen, bool remove_old_ghost)=0
AMR.
virtual void addEdges(Integer nb_edge, Int64ConstArrayView edge_infos, Int32ArrayView edge_lids=Int32ArrayView())=0
Adds edges.
Arguments for IMeshModifier::addCells().
void setAllowBuildFaces(bool v)
Indicates whether associated faces are allowed to be built.
Int32ArrayView m_cell_lids
Returns, list of localIds() of the created cells.
Arguments for IMeshModifier::addFaces().
Int32ArrayView m_face_lids
Returns, list of localIds() of the created faces.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
ArrayView< Int32 > Int32ArrayView
C equivalent of a 1D array of 32-bit integers.
Array< Int32 > Int32Array
Dynamic one-dimensional array of 32-bit integers.
std::int32_t Int32
Signed integer type of 32 bits.