From a62ad3cc1beb2fe632532a39ef78100ac6f8bbf0 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 5 Apr 2004 11:53:06 +0000 Subject: [PATCH] addend constant access funcs --- vcg/simplex/vertexplus/component.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vcg/simplex/vertexplus/component.h b/vcg/simplex/vertexplus/component.h index 287415bd..1e2d3ee5 100644 --- a/vcg/simplex/vertexplus/component.h +++ b/vcg/simplex/vertexplus/component.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.5 2004/04/03 13:35:51 cignoni +minor changes + Revision 1.4 2004/03/31 13:15:28 cignoni Added optional cpmponent @@ -56,6 +59,8 @@ public: typedef CoordType::ScalarType ScalarType; CoordType &P() { static CoordType coord(0, 0, 0); return coord; } + const CoordType &P() const { static CoordType coord(0, 0, 0); return coord; } + const CoordType &cP() const { static CoordType coord(0, 0, 0); return coord; } CoordType &UberP() { static CoordType coord(0, 0, 0); return coord; } }; @@ -64,6 +69,8 @@ public: typedef A CoordType; typedef typename CoordType::ScalarType ScalarType; CoordType &P() { return _coord; } + const CoordType &P() const { return _coord; } + const CoordType &cP() const { return _coord; } CoordType &UberP() { return _coord; } private: CoordType _coord;