removed callback def and added missing typenames
This commit is contained in:
parent
c704229b67
commit
7fb1fab10d
|
|
@ -24,10 +24,6 @@
|
||||||
#include <vcg/simplex/vertex/with/vn.h>
|
#include <vcg/simplex/vertex/with/vn.h>
|
||||||
#include <vcg/simplex/edge/edge.h>
|
#include <vcg/simplex/edge/edge.h>
|
||||||
|
|
||||||
#ifndef CALLBACK
|
|
||||||
#define CALLBACK __stdcall
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <wrap/gl/glu_tesselator.h>
|
#include <wrap/gl/glu_tesselator.h>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
@ -193,7 +189,7 @@ namespace io {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename TRIMESH>
|
template<class TRIMESH>
|
||||||
void triangulate(TRIMESH& mesh)
|
void triangulate(TRIMESH& mesh)
|
||||||
{
|
{
|
||||||
std::vector<std::vector<vcg::Point3f> > pl;
|
std::vector<std::vector<vcg::Point3f> > pl;
|
||||||
|
|
@ -223,7 +219,7 @@ namespace io {
|
||||||
//foreach triangle
|
//foreach triangle
|
||||||
for(size_t tr = 0;tr < ntri;++tr)
|
for(size_t tr = 0;tr < ntri;++tr)
|
||||||
{
|
{
|
||||||
TRIMESH::FaceType f;
|
typename TRIMESH::FaceType f;
|
||||||
for(unsigned int tt = 0;tt < 3; ++tt)
|
for(unsigned int tt = 0;tt < 3; ++tt)
|
||||||
f.V(tt) = &(mesh.vert[_pols[ii]._pv[tx[3 * tr + tt]] - &(vert[0])]);
|
f.V(tt) = &(mesh.vert[_pols[ii]._pv[tx[3 * tr + tt]] - &(vert[0])]);
|
||||||
mesh.face.push_back(f);
|
mesh.face.push_back(f);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue