removed callback def and added missing typenames

This commit is contained in:
Paolo Cignoni 2007-08-25 08:40:55 +00:00
parent c704229b67
commit 7fb1fab10d
1 changed files with 5 additions and 9 deletions
wrap/io_trimesh

View File

@ -24,10 +24,6 @@
#include <vcg/simplex/vertex/with/vn.h>
#include <vcg/simplex/edge/edge.h>
#ifndef CALLBACK
#define CALLBACK __stdcall
#endif
#include <wrap/gl/glu_tesselator.h>
namespace vcg {
@ -193,7 +189,7 @@ namespace io {
}
}
template<typename TRIMESH>
template<class TRIMESH>
void triangulate(TRIMESH& mesh)
{
std::vector<std::vector<vcg::Point3f> > pl;
@ -223,7 +219,7 @@ namespace io {
//foreach triangle
for(size_t tr = 0;tr < ntri;++tr)
{
TRIMESH::FaceType f;
typename TRIMESH::FaceType f;
for(unsigned int tt = 0;tt < 3; ++tt)
f.V(tt) = &(mesh.vert[_pols[ii]._pv[tx[3 * tr + tt]] - &(vert[0])]);
mesh.face.push_back(f);