Skip to content
Snippets Groups Projects
Commit e58ff3ab authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'Plugin-GaussCurvature-updated' into 'master'

new iterators and circulators

See merge request !2
parents 985766a4 4e4e1cb5
No related branches found
No related tags found
1 merge request!2new iterators and circulators
......@@ -131,8 +131,8 @@ void GaussCurvaturePlugin::computeGaussianCurvature( MeshT* _mesh) {
#ifdef USE_OPENMP
std::vector< typename MeshT::VertexHandle > handles;
handles.reserve(_mesh->n_vertices());
for ( typename MeshT::VertexIter v_it = _mesh->vertices_begin() ; v_it != _mesh->vertices_end(); ++v_it)
handles.push_back( *v_it );
for (auto v_it : _mesh->vertices())
handles.push_back( v_it );
#pragma omp parallel for
......@@ -140,8 +140,8 @@ void GaussCurvaturePlugin::computeGaussianCurvature( MeshT* _mesh) {
_mesh->property(gauss,handles[i]) = curvature::gauss_curvature(*_mesh,handles[i]);
#else
for ( typename MeshT::VertexIter v_it = _mesh->vertices_begin() ; v_it != _mesh->vertices_end(); ++v_it)
_mesh->property(gauss,*v_it) = curvature::gauss_curvature(*_mesh,*v_it);
for (auto v_it : _mesh->vertices())
_mesh->property(gauss,v_it) = curvature::gauss_curvature(*_mesh,v_it);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment