Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
TiedFace.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* TiedFace.h (C) 2000-2025 */
9/* */
10/* Semi-conforming mesh face. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_TIEDFACE_H
13#define ARCANE_CORE_TIEDFACE_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Real2.h"
18
19#include "arcane/core/Item.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30/*!
31 * \ingroup Mesh
32 * \brief Semi-conforming mesh face.
33 */
34class TiedFace
35{
36 public:
37
38 TiedFace(Integer aindex, Face aface)
39 : m_index(aindex)
40 , m_face(aface)
41 {
42 }
43
44 TiedFace() = default;
45
46 public:
47
48 //! Index of the face in the list of welded faces of the master face
49 Integer index() const { return m_index; }
50
51 //! Welded face
52 Face face() const { return m_face; }
53
54 private:
55
56 //! Index of the face in the list of welded faces of the master face
57 Integer m_index = NULL_ITEM_LOCAL_ID;
58 //! Welded face
59 Face m_face;
60};
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65} // namespace Arcane
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70#endif
Face of a cell.
Definition Item.h:1032
Face face() const
Welded face.
Definition TiedFace.h:52
Integer index() const
Index of the face in the list of welded faces of the master face.
Definition TiedFace.h:49
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.