Revision 648b0315c560916035435f742e057d43fb6c291c authored by Dmitri Naumov on 24 July 2023, 21:36:12 UTC, committed by Dmitri Naumov on 04 August 2023, 08:08:07 UTC
1 parent 69a6ca9
Node.h
/**
* \file
* \author Karsten Rink
* \date 2012-05-02
* \brief Definition of the Node class.
*
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <cstdlib>
#include <limits>
#include <vector>
#include "MathLib/Point3dWithID.h"
namespace ApplicationUtils
{
class NodeWiseMeshPartitioner;
}
namespace MeshToolsLib
{
class MeshRevision;
}
namespace MeshLib
{
/**
* A mesh node with coordinates in 3D space.
*/
class Node : public MathLib::Point3dWithID
{
/* friend classes: */
friend class Mesh;
friend class MeshToolsLib::MeshRevision;
public:
/// Constructor using a coordinate array
explicit Node(const double coords[3],
std::size_t id = std::numeric_limits<std::size_t>::max());
/// Constructor using a coordinate array
explicit Node(std::array<double, 3> const& coords,
std::size_t id = std::numeric_limits<std::size_t>::max());
/// Constructor using single coordinates
Node(double x, double y, double z, std::size_t id = std::numeric_limits<std::size_t>::max());
/// Copy constructor
Node(const Node &node);
}; /* class */
} // namespace MeshLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...