First set of changes to the new circulators
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@898 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -175,11 +175,11 @@ set_active_vertices()
|
||||
for ( ; voh_it ; ++voh_it ) {
|
||||
|
||||
// If the edge is a feature edge, skip the current vertex while smoothing
|
||||
if ( mesh_.status(mesh_.edge_handle(voh_it.handle())).feature() )
|
||||
if ( mesh_.status(mesh_.edge_handle(*voh_it)).feature() )
|
||||
active = false;
|
||||
|
||||
typename Mesh::FaceHandle fh1 = mesh_.face_handle(voh_it.handle() );
|
||||
typename Mesh::FaceHandle fh2 = mesh_.face_handle(mesh_.opposite_halfedge_handle(voh_it.handle() ) );
|
||||
typename Mesh::FaceHandle fh1 = mesh_.face_handle(*voh_it );
|
||||
typename Mesh::FaceHandle fh2 = mesh_.face_handle(mesh_.opposite_halfedge_handle(*voh_it ) );
|
||||
|
||||
// If one of the faces is a feature, lock current vertex
|
||||
if ( fh1.is_valid() && mesh_.status( fh1 ).feature() )
|
||||
|
||||
@@ -64,7 +64,7 @@ void smooth_mesh_property(unsigned int _n_iters, _Mesh& _m, _PropertyHandle _pph
|
||||
{
|
||||
unsigned int valence = 0;
|
||||
|
||||
Value& temp_value = temp_values[cv_it.handle().idx()];
|
||||
Value& temp_value = temp_values[cv_it->idx()];
|
||||
|
||||
temp_value.vectorize(0);
|
||||
|
||||
@@ -87,7 +87,7 @@ void smooth_mesh_property(unsigned int _n_iters, _Mesh& _m, _PropertyHandle _pph
|
||||
for ( typename _Mesh::ConstVertexIter cv_it = _m.vertices_begin();
|
||||
cv_it != _m.vertices_end(); ++cv_it)
|
||||
{
|
||||
_m.property(_pph,cv_it) = temp_values[cv_it.handle().idx()];
|
||||
_m.property(_pph,cv_it) = temp_values[cv_it->idx()];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user