git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@908 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-08-07 11:32:50 +00:00
parent 0217136b5e
commit daea181b2f
16 changed files with 117 additions and 119 deletions

View File

@@ -165,7 +165,7 @@ MeshViewerWidgetT<M>::open_mesh(const char* _filename, IO::Options _opt)
{
typename Mesh::Point v(0,0,0);
for( fv_it=mesh_.fv_iter(f_it); fv_it.is_valid(); ++fv_it)
v += OpenMesh::vector_cast<typename Mesh::Normal>(mesh_.point(fv_it));
v += OpenMesh::vector_cast<typename Mesh::Normal>(mesh_.point(*fv_it));
v *= 1.0f/3.0f;
mesh_.property( fp_normal_base_, f_it ) = v;
}
@@ -323,11 +323,11 @@ MeshViewerWidgetT<M>::draw_openmesh(const std::string& _draw_mode)
for (; fIt!=fEnd; ++fIt)
{
fvIt = mesh_.cfv_iter(*fIt);
glVertex3fv( &mesh_.point(fvIt)[0] );
glVertex3fv( &mesh_.point(*fvIt)[0] );
++fvIt;
glVertex3fv( &mesh_.point(fvIt)[0] );
glVertex3fv( &mesh_.point(*fvIt)[0] );
++fvIt;
glVertex3fv( &mesh_.point(fvIt)[0] );
glVertex3fv( &mesh_.point(*fvIt)[0] );
}
glEnd();
}
@@ -340,11 +340,11 @@ MeshViewerWidgetT<M>::draw_openmesh(const std::string& _draw_mode)
glNormal3fv( &mesh_.normal(fIt)[0] );
fvIt = mesh_.cfv_iter(*fIt);
glVertex3fv( &mesh_.point(fvIt)[0] );
glVertex3fv( &mesh_.point(*fvIt)[0] );
++fvIt;
glVertex3fv( &mesh_.point(fvIt)[0] );
glVertex3fv( &mesh_.point(*fvIt)[0] );
++fvIt;
glVertex3fv( &mesh_.point(fvIt)[0] );
glVertex3fv( &mesh_.point(*fvIt)[0] );
}
glEnd();