added missing include file and namespace prefix
This commit is contained in:
parent
6d1e0fca7d
commit
f49691377c
|
@ -25,6 +25,7 @@
|
||||||
#ifndef __VCGLIB_IMPORT_OBJ
|
#ifndef __VCGLIB_IMPORT_OBJ
|
||||||
#define __VCGLIB_IMPORT_OBJ
|
#define __VCGLIB_IMPORT_OBJ
|
||||||
|
|
||||||
|
#include<vcg/complex/allocate.h>
|
||||||
#include <wrap/callback.h>
|
#include <wrap/callback.h>
|
||||||
#include <wrap/io_trimesh/io_mask.h>
|
#include <wrap/io_trimesh/io_mask.h>
|
||||||
#include <wrap/io_trimesh/io_material.h>
|
#include <wrap/io_trimesh/io_material.h>
|
||||||
|
@ -33,6 +34,7 @@
|
||||||
#endif
|
#endif
|
||||||
#include <vcg/space/color4.h>
|
#include <vcg/space/color4.h>
|
||||||
|
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -259,7 +261,7 @@ public:
|
||||||
int numVerticesPlusFaces = oi.numVertices + oi.numFaces;
|
int numVerticesPlusFaces = oi.numVertices + oi.numFaces;
|
||||||
int extraTriangles=0;
|
int extraTriangles=0;
|
||||||
// vertices and faces allocatetion
|
// vertices and faces allocatetion
|
||||||
VertexIterator vi = Allocator<OpenMeshType>::AddVertices(m,oi.numVertices);
|
VertexIterator vi = vcg::tri::Allocator<OpenMeshType>::AddVertices(m,oi.numVertices);
|
||||||
//FaceIterator fi = Allocator<OpenMeshType>::AddFaces(m,oi.numFaces);
|
//FaceIterator fi = Allocator<OpenMeshType>::AddFaces(m,oi.numFaces);
|
||||||
|
|
||||||
ObjIndexedFace ff;
|
ObjIndexedFace ff;
|
||||||
|
@ -639,7 +641,7 @@ public:
|
||||||
} // end while stream not eof
|
} // end while stream not eof
|
||||||
assert((numTriangles +numVertices) == numVerticesPlusFaces+extraTriangles);
|
assert((numTriangles +numVertices) == numVerticesPlusFaces+extraTriangles);
|
||||||
|
|
||||||
FaceIterator fi = Allocator<OpenMeshType>::AddFaces(m,numTriangles);
|
FaceIterator fi = vcg::tri::Allocator<OpenMeshType>::AddFaces(m,numTriangles);
|
||||||
//-------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Now the final pass to convert indexes into pointers for face to vert/norm/tex references
|
// Now the final pass to convert indexes into pointers for face to vert/norm/tex references
|
||||||
|
|
Loading…
Reference in New Issue