Exemple #1
0
 TMPQualityMetricTest() : 
   tester( QualityMetricTester::ALL_FE_EXCEPT_SEPTAHEDRON, &settings ),
   e_weight( 2.7182818284590451 ),
   faux_pi(3.14159), faux_zero(0.0), faux_two(2.0),
   num_metric( &test_metric ),
   test_qm( &ideal, &num_metric ),
   test_qm_surf( &surf_target, &num_metric ),
   zero_qm( &ideal, &faux_zero ),
   weight_qm( &ideal, &e_weight, &test_metric ),
   center_qm( &ideal, &test_metric ),
   triCenter( centerOnly.get_mapping_function_2D(TRIANGLE) ),
   quadCenter( centerOnly.get_mapping_function_2D(QUADRILATERAL) ),
   tetCenter( centerOnly.get_mapping_function_3D(TETRAHEDRON) ),
   pyrCenter( centerOnly.get_mapping_function_3D(PYRAMID) ),
   priCenter( centerOnly.get_mapping_function_3D(PRISM) ),
   hexCenter( centerOnly.get_mapping_function_3D(HEXAHEDRON) )
 {  
   centerOnly.set_mapping_function( &triCenter );
   centerOnly.set_mapping_function( &quadCenter );
   centerOnly.set_mapping_function( &tetCenter );
   centerOnly.set_mapping_function( &pyrCenter );
   centerOnly.set_mapping_function( &priCenter );
   centerOnly.set_mapping_function( &hexCenter );
   tester.ideal_pyramid_base_equals_height( true );
 }
 IdealWeightInverseMeanRatioTest() 
   : tester(QualityMetricTester::ALL_FE_EXCEPT_SEPTAHEDRON)
   { tester.ideal_pyramid_base_equals_height( true ); }