Arcane  v3.15.3.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
FaceReorienter.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* Vérifie la bonne orientation d'une face et la réoriente le cas échéant. */
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 * \brief Cette fonction/classe réoriente les faces.
31 *
32 * Cette classe sert par exemple à s'assurrer de la bonne orientation
33 * des faces après un changement de topologie du maillage
34 */
35class ARCANE_CORE_EXPORT FaceReorienter
36{
37 public:
38
39 /*! Constructeur.
40 * \deprecated Utiliser FaceReorienter(IMesh*) à la place.
41 */
42 ARCANE_DEPRECATED_260 FaceReorienter(ITraceMng* tm);
43 //! Constructeur.
44 explicit FaceReorienter(IMesh* mesh);
45
46 public:
47
48 /*!
49 * \deprecated Utiliser checkAndChangeOrientation(Face) à la place.
50 */
51 ARCANE_DEPRECATED_260 void checkAndChangeOrientation(ItemInternal* face);
52
53 /*!
54 * \deprecated Utiliser checkAndChangeOrientationAMR(Face) à la place.
55 */
56 ARCANE_DEPRECATED_260 void checkAndChangeOrientationAMR(ItemInternal* face);
57
58 /*!
59 * \brief Vérifie et éventuellement change l'orientation de la face.
60 *
61 * \param face face a réorienter
62 */
63 void checkAndChangeOrientation(Face face);
64
65 /*!
66 * \brief Vérifie et éventuellement change l'orientation de la face.
67 *
68 * \param face face a réorienter
69 */
70 // AMR
71 void checkAndChangeOrientationAMR(Face face);
72
73 private:
74
75 ITraceMng* m_trace_mng = nullptr;
76 IItemFamily* m_face_family = nullptr;
77 UniqueArray<Int64> m_nodes_unique_id;
78 UniqueArray<Int32> m_nodes_local_id;
79 UniqueArray<Integer> m_face_nodes_index;
80};
81
82/*---------------------------------------------------------------------------*/
83/*---------------------------------------------------------------------------*/
84
85} // namespace Arcane::mesh
86
87/*---------------------------------------------------------------------------*/
88/*---------------------------------------------------------------------------*/
89
90#endif
Déclarations de types sur les entités.
Cette fonction/classe réoriente les faces.
Face d'une maille.
Definition Item.h:944
Interface d'une famille d'entités.
Interface du gestionnaire de traces.
Référence à une instance.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-