Subversion Repositories gelsvn

Rev

Rev 529 | Rev 566 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 529 Rev 543
Line 296... Line 296...
296
        smooth_something_on_mesh(m, curvature, smooth_steps);
296
        smooth_something_on_mesh(m, curvature, smooth_steps);
297
    }
297
    }
298
 
298
 
299
    void mean_curvatures(const Manifold& m, VertexAttributeVector<double>& curvature, int smooth_steps)
299
    void mean_curvatures(const Manifold& m, VertexAttributeVector<double>& curvature, int smooth_steps)
300
    {
300
    {
301
        for(VertexIDIterator v = m.vertices_begin(); v != m.vertices_end(); ++v){
301
        for(VertexIDIterator v = m.vertices_begin(); v != m.vertices_end(); ++v)
-
 
302
			if(!boundary(m,*v))
-
 
303
			{
302
            Vec3d N = mean_curvature_normal(m, *v);
304
				Vec3d N = mean_curvature_normal(m, *v);
303
            curvature[*v] = length(N) * sign(dot(N,Vec3d(normal(m, *v))));
305
				curvature[*v] = length(N) * sign(dot(N,Vec3d(normal(m, *v))));
304
        }	
306
			}	
305
        smooth_something_on_mesh(m, curvature, smooth_steps);	
307
        smooth_something_on_mesh(m, curvature, smooth_steps);	
306
    }
308
    }
307
 
309
 
308
 
310
 
309
    void curvature_paraboloids( const Manifold& m, 
311
    void curvature_paraboloids( const Manifold& m,