Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
FaceReorienter.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/* FaceReorienter.h (C) 2000-2025 */
9/* */
10/* Checks the correct orientation of a face and reorients it if necessary. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_FACEREORIENTER_H
13#define ARCANE_CORE_FACEREORIENTER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Array.h"
18
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30/*!
31 * \brief This function/class reorients faces.
32 *
33 * This class is used, for example, to ensure the correct orientation
34 * of faces after a mesh topology change.
35 */
36class ARCANE_CORE_EXPORT FaceReorienter
37{
38 public:
39
40 /*! Constructor.
41 * \deprecated Use FaceReorienter(IMesh*) instead.
42 */
43 ARCANE_DEPRECATED_260 FaceReorienter(ITraceMng* tm);
44 //! Constructor.
45 explicit FaceReorienter(IMesh* mesh);
46
47 public:
48
49 /*!
50 * \deprecated Use checkAndChangeOrientation(Face) instead.
51 */
52 ARCANE_DEPRECATED_260 void checkAndChangeOrientation(ItemInternal* face);
53
54 /*!
55 * \deprecated Use checkAndChangeOrientationAMR(Face) instead.
56 */
57 ARCANE_DEPRECATED_260 void checkAndChangeOrientationAMR(ItemInternal* face);
58
59 /*!
60 * \brief Checks and optionally changes the orientation of the face.
61 *
62 * \param face face to reorient
63 */
65
66 /*!
67 * \brief Checks and optionally changes the orientation of the face.
68 *
69 * \param face face to reorient
70 */
71 // AMR
73
74 private:
75
76 ITraceMng* m_trace_mng = nullptr;
77 IItemFamily* m_face_family = nullptr;
78 UniqueArray<Int64> m_nodes_unique_id;
79 UniqueArray<Int32> m_nodes_local_id;
80 UniqueArray<Integer> m_face_nodes_index;
81};
82
83/*---------------------------------------------------------------------------*/
84/*---------------------------------------------------------------------------*/
85
86} // namespace Arcane
87
88/*---------------------------------------------------------------------------*/
89/*---------------------------------------------------------------------------*/
90
91#endif
Declarations of types on entities.
ARCANE_DEPRECATED_260 void checkAndChangeOrientation(ItemInternal *face)
ARCANE_DEPRECATED_260 void checkAndChangeOrientationAMR(ItemInternal *face)
ARCANE_DEPRECATED_260 FaceReorienter(ITraceMng *tm)
Face of a cell.
Definition Item.h:1032
Interface of an entity family.
Definition IItemFamily.h:83
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --