From 0e2bc54b529f5e82b1feb2fc8def8d2442ea46d3 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Thu, 19 Mar 2009 11:12:23 +0000 Subject: [PATCH] Added non-const pointer accessor. --- vcg/space/deprecated_point2.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcg/space/deprecated_point2.h b/vcg/space/deprecated_point2.h index 47dfd9fd..1b5056b5 100644 --- a/vcg/space/deprecated_point2.h +++ b/vcg/space/deprecated_point2.h @@ -89,7 +89,11 @@ public: inline const ScalarType &Y() const {return _v[1];} inline ScalarType &X() {return _v[0];} inline ScalarType &Y() {return _v[1];} - inline const ScalarType * V() const + inline const ScalarType * V() const + { + return _v; + } + inline ScalarType * V() { return _v; }