From a2341076c1ffdf503dcb1e1e023f4dcf52a116b4 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 19 Mar 2010 17:20:52 +0000 Subject: [PATCH] added typedef of ScalarType --- vcg/simplex/face/component_polygon.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/simplex/face/component_polygon.h b/vcg/simplex/face/component_polygon.h index c8b5765a..f391743e 100644 --- a/vcg/simplex/face/component_polygon.h +++ b/vcg/simplex/face/component_polygon.h @@ -93,9 +93,10 @@ public: template class PFVAdj: public T { public: PFVAdj(){_vpoly = NULL;} + typedef typename T::VertexType::CoordType::ScalarType ScalarType; inline typename T::VertexType * & V( const int j ) { assert(j>=0 && jVN()); return _vpoly[j]; } inline typename T::VertexType * const & V( const int j ) const { assert(j>=0 && jVN()); return _vpoly[j]; } - inline typename T::VertexType * cV( const int j ) const { assert(j>=0 && jVN()); return _vpoly[j]; } + inline typename T::VertexType * cV( const int j ) const { assert(j>=0 && jVN()); return _vpoly[j]; } /** Return the pointer to the ((j+1)%3)-th vertex of the face.