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
58 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"
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()
Empty constructor.
const Real3 operator[](Integer i) const
Retrieves the value of the i-th node.
GeomElementBase(const VariableNodeReal3 &coords, ItemWithNodes item)
Constructor from the coordinates coords of the nodes of the entity item.
const Real3 s(Integer i) const
Retrieves the value of the i-th node.
void setItem(Integer i, Real x, Real y, Real z)
Positions the value of the i-th node at Real3(x,y,z).
void fillView(Real3ArrayView view) const
Fills the view view with the coordinates of the instance.
void init(const VariableNodeReal3 &coords, ItemWithNodes item)
Initializes the coordinates with those of the nodes of the entity item.
GeomElementBase(Real3ConstArrayView coords)
Constructor from the coordinates coords.
void setItem(Integer i, const Real3 &v)
Positions the value of the i-th node at v.
ViewType view()
Mutable view of the element.
MeshVariableScalarRefT< Node, Real3 > VariableNodeReal3
Coordinate type quantity at node.
ConstArrayView< Real3 > Real3ConstArrayView
C equivalent of a 1D array of Real3.
ArrayView< Real3 > Real3ArrayView
C equivalent of a 1D array of Real3.
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.