some extra typename directives for compilation with gcc 4.1 on linux
This commit is contained in:
parent
19a6e60812
commit
73751c6e76
|
@ -103,7 +103,7 @@ public:
|
||||||
assert(flst.size() % str == 0);
|
assert(flst.size() % str == 0);
|
||||||
for(unsigned int cont = 0;cont < flst.size();cont += str)
|
for(unsigned int cont = 0;cont < flst.size();cont += str)
|
||||||
{
|
{
|
||||||
OpenMeshType::VertexIterator vi=vcg::tri::Allocator<OpenMeshType>::AddVertices(m,1);
|
typename OpenMeshType::VertexIterator vi=vcg::tri::Allocator<OpenMeshType>::AddVertices(m,1);
|
||||||
vi->P()= vcg::Point3f(flst[cont],flst[cont + 1],flst[cont + 2]);
|
vi->P()= vcg::Point3f(flst[cont],flst[cont + 1],flst[cont + 2]);
|
||||||
vi->N() = vcg::Point3f(0.0,0.0,0.0);
|
vi->N() = vcg::Point3f(0.0,0.0,0.0);
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ public:
|
||||||
|
|
||||||
for(unsigned int ind = 0;ind < pos->indices.size();++ind)
|
for(unsigned int ind = 0;ind < pos->indices.size();++ind)
|
||||||
{
|
{
|
||||||
OpenMeshType::FaceIterator fi=vcg::tri::Allocator<OpenMeshType>::AddFaces(m,1);
|
typename OpenMeshType::FaceIterator fi=vcg::tri::Allocator<OpenMeshType>::AddFaces(m,1);
|
||||||
assert(pos->indices[ind] < m.vert.size());
|
assert(pos->indices[ind] < m.vert.size());
|
||||||
fi->V(0) = &m.vert[pos->indices[ind]];
|
fi->V(0) = &m.vert[pos->indices[ind]];
|
||||||
|
|
||||||
|
@ -244,4 +244,4 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue