Added a resize() method to the basic attribute handle class to allow the definition of templated functions that can indifferently take an attribute or a vector as a parameter (like the ones in MeshToMatrix)

This commit is contained in:
Paolo Cignoni 2014-11-14 22:03:58 +00:00
parent 1d79254dbc
commit 828dc5f404
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ class TriMesh
// access function
template <class RefType>
ATTR_TYPE & operator [](const RefType & i){return (*_handle)[i];}
void resize(size_t size) { };
};
template <class ATTR_TYPE>