From a6c061715f9c01699cd722c52bd0572bab7dbcba Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 22 Sep 2022 15:58:58 +0200 Subject: [PATCH] Base: fix const-correctness and include required header --- src/Base/Builder3D.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Base/Builder3D.h b/src/Base/Builder3D.h index 4f196d1678..6ab1ce698e 100644 --- a/src/Base/Builder3D.h +++ b/src/Base/Builder3D.h @@ -28,6 +28,7 @@ #include #include +#include #ifndef FC_GLOBAL_H #include #endif @@ -35,8 +36,6 @@ namespace Base { class Matrix4D; -template class Vector3; -using Vector3f = Vector3; /** A Builder class for 3D representations on App level * On the application level nothing is known of the visual representation of data. @@ -369,17 +368,17 @@ public: } /// Return the vectors of an SoNormal node - const std::vector& getVector() { + const std::vector& getVector() const { return vector; } /// Return the points of an SoCoordinate3 node - const std::vector& getPoints() { + const std::vector& getPoints() const { return points; } /// Return the faces of an SoIndexedFaceSet node - const std::vector& getFaces() { + const std::vector& getFaces() const { return faces; }