Some indentations

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@90 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2009-03-26 17:58:42 +00:00
parent 5e5792399e
commit a2a6248a99

View File

@@ -90,30 +90,30 @@ public:
// test for valid vertex indices // test for valid vertex indices
for (it=_indices.begin(); it!=end; ++it) for (it=_indices.begin(); it!=end; ++it)
if (! mesh_.is_valid_handle(*it)) if (! mesh_.is_valid_handle(*it))
{ {
omerr() << "ImporterT: Face contains invalid vertex index\n"; omerr() << "ImporterT: Face contains invalid vertex index\n";
return fh; return fh;
} }
// don't allow double vertices // don't allow double vertices
for (it=_indices.begin(); it!=end; ++it) for (it=_indices.begin(); it!=end; ++it)
for (it2=it+1; it2!=end; ++it2) for (it2=it+1; it2!=end; ++it2)
if (*it == *it2) if (*it == *it2)
{ {
omerr() << "ImporterT: Face has equal vertices\n"; omerr() << "ImporterT: Face has equal vertices\n";
failed_faces_.push_back(_indices); failed_faces_.push_back(_indices);
return fh; return fh;
} }
// try to add face // try to add face
fh = mesh_.add_face(_indices); fh = mesh_.add_face(_indices);
if (!fh.is_valid()) if (!fh.is_valid())
{ {
failed_faces_.push_back(_indices); failed_faces_.push_back(_indices);
return fh; return fh;
} }
} }
@@ -163,7 +163,7 @@ public:
virtual void set_texcoord(VertexHandle _vh, const Vec2f& _texcoord) virtual void set_texcoord(VertexHandle _vh, const Vec2f& _texcoord)
{ {
if (mesh_.has_vertex_texcoords2D()) if (mesh_.has_vertex_texcoords2D())
mesh_.set_texcoord2D(_vh, vector_cast<TexCoord2D>(_texcoord)); mesh_.set_texcoord2D(_vh, vector_cast<TexCoord2D>(_texcoord));
} }
virtual void set_texcoord(HalfedgeHandle _heh, const Vec2f& _texcoord) virtual void set_texcoord(HalfedgeHandle _heh, const Vec2f& _texcoord)