diff --git a/MeshLib/Node.cpp b/MeshLib/Node.cpp index ece3d311e821db71cd44d44687659ded0e1d8b45..5ed8cb02e9bc511fb041221d69af65415662a56d 100644 --- a/MeshLib/Node.cpp +++ b/MeshLib/Node.cpp @@ -18,7 +18,8 @@ namespace MeshLib { Node::Node(const double coords[3], std::size_t id) - : MathLib::Point3dWithID(coords, id) + : MathLib::Point3dWithID( + std::array<double,3>{{coords[0], coords[1], coords[2]}}, id) { } @@ -33,7 +34,7 @@ Node::Node(double x, double y, double z, std::size_t id) } Node::Node(const Node &node) - : MathLib::Point3dWithID(node.getCoords(), node.getID()) + : MathLib::Point3dWithID(node._x, node.getID()) { }