OBJ Wrtier conversion fixes

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@855 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-07-24 06:36:26 +00:00
parent c554eb6b56
commit b18b79a183

View File

@@ -201,8 +201,8 @@ bool
_OBJWriter_:: _OBJWriter_::
write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _precision) const write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _precision) const
{ {
unsigned int nV, nF, idx; unsigned int idx;
size_t i, j; size_t i, j,nV, nF;
Vec3f v, n; Vec3f v, n;
Vec2f t; Vec2f t;
VertexHandle vh; VertexHandle vh;
@@ -256,7 +256,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
// vertex data (point, normals, texcoords) // vertex data (point, normals, texcoords)
for (i=0, nV=_be.n_vertices(); i<nV; ++i) for (i=0, nV=_be.n_vertices(); i<nV; ++i)
{ {
vh = VertexHandle(i); vh = VertexHandle(int(i));
v = _be.point(vh); v = _be.point(vh);
n = _be.normal(vh); n = _be.normal(vh);
t = _be.texcoord(vh); t = _be.texcoord(vh);
@@ -302,7 +302,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
_out << "f"; _out << "f";
_be.get_vhandles(FaceHandle(i), vhandles); _be.get_vhandles(FaceHandle(int(i)), vhandles);
for (j=0; j< vhandles.size(); ++j) for (j=0; j< vhandles.size(); ++j)
{ {