A
alessio211734
I would like understand this class TriMesh defined in
https://vcg.svn.sourceforge.net/svnroot/vcg/trunk/vcglib/vcg/complex/trimesh/base.h
I think the implementation is a metaprogramming trick and I ask you
for some help to understand it.
From this tutorials
http://vcg.sourceforge.net/index.php/Tutorial
explains I can declare:
class MyMesh : public vcg::tri::TriMesh< std::vector<MyVertex>,
std::vector<MyFace> > {}
or
class MyMesh : public vcg::tri::TriMesh<
std::vector<MyFace> ,std::vector<MyVertex>,std::vector<MyEdge> > {}
and the difference is that in the first declaration I have a trimesh
with vertex and face while in the second declaration I have a trimesh
with face, vertex and edge.
Can anyone explain me where can I study this metaprogramming trick to
understand the triMesh class implementation?
Thanks in advance.
https://vcg.svn.sourceforge.net/svnroot/vcg/trunk/vcglib/vcg/complex/trimesh/base.h
I think the implementation is a metaprogramming trick and I ask you
for some help to understand it.
From this tutorials
http://vcg.sourceforge.net/index.php/Tutorial
explains I can declare:
class MyMesh : public vcg::tri::TriMesh< std::vector<MyVertex>,
std::vector<MyFace> > {}
or
class MyMesh : public vcg::tri::TriMesh<
std::vector<MyFace> ,std::vector<MyVertex>,std::vector<MyEdge> > {}
and the difference is that in the first declaration I have a trimesh
with vertex and face while in the second declaration I have a trimesh
with face, vertex and edge.
Can anyone explain me where can I study this metaprogramming trick to
understand the triMesh class implementation?
Thanks in advance.