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:
parent
1d79254dbc
commit
828dc5f404
|
|
@ -255,6 +255,7 @@ class TriMesh
|
||||||
// access function
|
// access function
|
||||||
template <class RefType>
|
template <class RefType>
|
||||||
ATTR_TYPE & operator [](const RefType & i){return (*_handle)[i];}
|
ATTR_TYPE & operator [](const RefType & i){return (*_handle)[i];}
|
||||||
|
void resize(size_t size) { };
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class ATTR_TYPE>
|
template <class ATTR_TYPE>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue