--- a/src/linetypes/edge.cpp Fri Dec 13 15:55:56 2019 +0200 +++ b/src/linetypes/edge.cpp Fri Dec 13 21:35:59 2019 +0200 @@ -1,14 +1,14 @@ #include "edge.h" linetypes::Edge::Edge( - const Vertex& point_1, - const Vertex& point_2, + const Point3D& point_1, + const Point3D& point_2, const Color color_index) : ColoredObject{color_index}, point_1{point_1}, point_2{point_2} {} -linetypes::Edge::Edge(const QVector<Vertex>& vertices, const Color color) : +linetypes::Edge::Edge(const QVector<Point3D>& vertices, const Color color) : ColoredObject{color}, point_1{vertices[0]}, point_2{vertices[1]} @@ -34,10 +34,10 @@ switch (property) { case Property::Point1: - point_1 = value.value<Vertex>(); + point_1 = value.value<Point3D>(); return SetPropertyResult::Success; case Property::Point2: - point_2 = value.value<Vertex>(); + point_2 = value.value<Point3D>(); return SetPropertyResult::Success; default: return BaseClass::setProperty(property, value);