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.