OGS
MeshNodalCoordinatesBackend.cpp
Go to the documentation of this file.
1
11
12#include <algorithm>
13
14#include "MeshLib/Node.h"
15
16namespace MeshLib
17{
19 std::vector<Node*> const& nodes)
20 : nodes_(nodes)
21{
22}
23
24double MeshNodalCoordinatesBackend::map(vtkIdType idx) const
25{
26 return nodes_[idx / 3]->operator[](idx % 3);
27}
28
30 double* tuple) const
31{
32 std::copy_n(nodes_[tupleId]->data(), 3, tuple);
33}
34} // namespace MeshLib
Definition of the Node class.
MeshNodalCoordinatesBackend(std::vector< Node * > const &nodes)
void mapTuple(vtkIdType tupleId, double *tuple) const