Commit b18b79a1 authored by Jan Möbius's avatar Jan Möbius

OBJ Wrtier conversion fixes

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@855 fdac6126-5c0c-442c-9429-916003d36597
parent c554eb6b
......@@ -201,8 +201,8 @@ bool
_OBJWriter_::
write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _precision) const
{
unsigned int nV, nF, idx;
size_t i, j;
unsigned int idx;
size_t i, j,nV, nF;
Vec3f v, n;
Vec2f t;
VertexHandle vh;
......@@ -256,7 +256,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
// vertex data (point, normals, texcoords)
for (i=0, nV=_be.n_vertices(); i<nV; ++i)
{
vh = VertexHandle(i);
vh = VertexHandle(int(i));
v = _be.point(vh);
n = _be.normal(vh);
t = _be.texcoord(vh);
......@@ -302,7 +302,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
_out << "f";
_be.get_vhandles(FaceHandle(i), vhandles);
_be.get_vhandles(FaceHandle(int(i)), vhandles);
for (j=0; j< vhandles.size(); ++j)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment