Subversion Repositories gelsvn

Rev

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

Rev 636 Rev 637
Line 254... Line 254...
254
 
254
 
255
 
255
 
256
 
256
 
257
    void laplacian_smooth(Manifold& m,float weight, int max_iter)
257
    void laplacian_smooth(Manifold& m,float weight, int max_iter)
258
    {
258
    {
259
        laplacian_smooth_example(m);
259
//        laplacian_smooth_example(m);
260
//        laplacian_smooth7(m,weight,max_iter);
260
        laplacian_smooth2(m,weight,max_iter);
-
 
261
 
261
//        Util::Timer tim;
262
//        Util::Timer tim;
262
//
-
 
263
//        cout << "Method 0: ";
263
//        cout << "Method 0: ";
264
//        for(int i=0;i<5;++i) {
264
//        for(int i=0;i<5;++i) {
265
//            Manifold m2 = m;
265
//            Manifold m2 = m;
266
//            tim.start();
266
//            tim.start();
267
//            laplacian_smooth0(m2, 1, 1000);
267
//            laplacian_smooth0(m2, 1, 1000);
Line 303... Line 303...
303
//            laplacian_smooth4(m2, 1, 1000);
303
//            laplacian_smooth4(m2, 1, 1000);
304
//            cout << tim.get_secs() << ", ";
304
//            cout << tim.get_secs() << ", ";
305
//        }
305
//        }
306
//        cout << endl;
306
//        cout << endl;
307
//
307
//
308
////        cout << "Method 5: ";
308
//        cout << "Method 5: ";
309
////        for(int i=0;i<3;++i) {
309
//        for(int i=0;i<3;++i) {
310
////            Manifold m2 = m;
310
//            Manifold m2 = m;
311
////            tim.start();
311
//            tim.start();
312
////            laplacian_smooth5(m2, 1, 1000);
312
//            laplacian_smooth5(m2, 1, 1000);
313
////            cout << " sec: "<< tim.get_secs() << ",";
313
//            cout << " sec: "<< tim.get_secs() << ",";
314
////        }
314
//        }
315
////        cout << endl;
315
//        cout << endl;
316
//
316
//
317
//        CORES = 2;
317
//        CORES = 2;
318
//        cout << "Method 6 (2): ";
318
//        cout << "Method 6 (2): ";
319
//        for(int i=0;i<5;++i) {
319
//        for(int i=0;i<5;++i) {
320
//            Manifold m2 = m;
320
//            Manifold m2 = m;
Line 323... Line 323...
323
//            cout << tim.get_secs() << ", ";
323
//            cout << tim.get_secs() << ", ";
324
//        }
324
//        }
325
//        cout << endl;
325
//        cout << endl;
326
//        
326
//        
327
//        CORES = 4;
327
//        CORES = 4;
328
//        cout << "Method 6 (4): ";
328
//        cout << "Method 7 (4): ";
329
//        for(int i=0;i<5;++i) {
329
//        for(int i=0;i<5;++i) {
330
//            Manifold m2 = m;
330
//            Manifold m2 = m;
331
//            tim.start();
331
//            tim.start();
332
//            laplacian_smooth6(m2, 1, 1000);
332
//            laplacian_smooth6(m2, 1, 1000);
333
//            cout << tim.get_secs() << ", ";
333
//            cout << tim.get_secs() << ", ";
334
//        }
334
//        }
335
//        cout << endl;
335
//        cout << endl;
336
//
336
//
337
//        CORES = 8;
337
//        CORES = 8;
338
//        cout << "Method 6 (8): ";
338
//        cout << "Method 7 (8): ";
339
//        for(int i=0;i<5;++i) {
339
//        for(int i=0;i<5;++i) {
340
//            Manifold m2 = m;
340
//            Manifold m2 = m;
341
//            tim.start();
341
//            tim.start();
342
//            laplacian_smooth6(m2, 1, 1000);
342
//            laplacian_smooth6(m2, 1, 1000);
343
//            cout << tim.get_secs() << ", ";
343
//            cout << tim.get_secs() << ", ";