12#ifndef ARCANE_GEOMETRIC_GEOMELEMENT_H
13#define ARCANE_GEOMETRIC_GEOMELEMENT_H
17#include "arcane/core/Item.h"
18#include "arcane/core/VariableTypes.h"
20#include "arcane/geometry/GeomElementView.h"
25namespace Arcane::geometric
76 for (
Integer i = 0; i < NbNode; ++i)
85 for (
Integer i = 0; i < NbNode; ++i)
86 m_s[i] = coords[item.
node(i)];
97#include "arcane/geometry/GeneratedGeomElement.h"
Modifiable view of an array of type T.
Constant view of an array of type T.
Mesh element based on nodes (Edge,Face,Cell).
Node node(Int32 i) const
i-th node of the entity
Class managing a 3-dimensional real vector.
GeomElementBase()=default
Empty constructor.
constexpr void setItem(Integer i, Real x, Real y, Real z)
Positions the value of the i-th node at Real3(x,y,z).
GeomElementBase(const VariableNodeReal3 &coords, ItemWithNodes item)
Constructor from the coordinates coords of the nodes of the entity item.
constexpr void fillView(ArrayView< Real3 > view) const
Fills the view view with the coordinates of the instance.
constexpr const Real3 s(Integer i) const
Retrieves the value of the i-th node.
constexpr void setItem(Integer i, const Real3 &v)
Positions the value of the i-th node at v.
constexpr GeomElementBase(ConstArrayView< Real3 > coords)
Constructor from the coordinates coords.
void init(const VariableNodeReal3 &coords, ItemWithNodes item)
Initializes the coordinates with those of the nodes of the entity item.
constexpr const Real3 operator[](Integer i) const
Retrieves the value of the i-th node.
MeshVariableScalarRefT< Node, Real3 > VariableNodeReal3
Coordinate type quantity at node.
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.