Silence more warnings in OFF PLY and STL writer

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@845 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-07-23 14:03:45 +00:00
parent 68c881c0d1
commit 3102340852
3 changed files with 20 additions and 20 deletions

View File

@@ -199,7 +199,7 @@ write_ascii(std::ostream& _out, BaseExporter& _be, Options _opt) const
// vertex data (point, normals, colors, texcoords)
for (i=0, nV=_be.n_vertices(); i<nV; ++i)
for (i=0, nV=int(_be.n_vertices()); i<nV; ++i)
{
vh = VertexHandle(i);
v = _be.point(vh);
@@ -251,7 +251,7 @@ write_ascii(std::ostream& _out, BaseExporter& _be, Options _opt) const
// faces (indices starting at 0)
if (_be.is_triangle_mesh())
{
for (i=0, nF=_be.n_faces(); i<nF; ++i)
for (i=0, nF=int(_be.n_faces()); i<nF; ++i)
{
_be.get_vhandles(FaceHandle(i), vhandles);
_out << 3 << " ";
@@ -288,7 +288,7 @@ write_ascii(std::ostream& _out, BaseExporter& _be, Options _opt) const
}
else
{
for (i=0, nF=_be.n_faces(); i<nF; ++i)
for (i=0, nF=int(_be.n_faces()); i<nF; ++i)
{
nV = _be.get_vhandles(FaceHandle(i), vhandles);
_out << nV << " ";
@@ -370,7 +370,7 @@ write_binary(std::ostream& _out, BaseExporter& _be, Options _opt) const
writeValue(_out, 0 );
// vertex data (point, normals, texcoords)
for (i=0, nV=_be.n_vertices(); i<nV; ++i)
for (i=0, nV=int(_be.n_vertices()); i<nV; ++i)
{
vh = VertexHandle(i);
v = _be.point(vh);
@@ -419,7 +419,7 @@ write_binary(std::ostream& _out, BaseExporter& _be, Options _opt) const
// faces (indices starting at 0)
if (_be.is_triangle_mesh())
{
for (i=0, nF=_be.n_faces(); i<nF; ++i)
for (i=0, nF=int(_be.n_faces()); i<nF; ++i)
{
//face
_be.get_vhandles(FaceHandle(i), vhandles);
@@ -452,7 +452,7 @@ write_binary(std::ostream& _out, BaseExporter& _be, Options _opt) const
}
else
{
for (i=0, nF=_be.n_faces(); i<nF; ++i)
for (i=0, nF=int(_be.n_faces()); i<nF; ++i)
{
//face
nV = _be.get_vhandles(FaceHandle(i), vhandles);
@@ -538,7 +538,7 @@ binary_size(BaseExporter& _be, Options _opt) const
unsigned int i, nV, nF;
std::vector<VertexHandle> vhandles;
for (i=0, nF=_be.n_faces(); i<nF; ++i)
for (i=0, nF=int(_be.n_faces()); i<nF; ++i)
{
nV = _be.get_vhandles(FaceHandle(i), vhandles);
data += nV * sizeof(unsigned int);