6 std::string
filename = TestDir +
"unittest/surfrandomtris-4part.h5m";
10 int main(
int argc,
char** argv )
12 if( argc > 1 )
filename = std::string( argv[1] );
24 std::cout <<
"Mesh must have faces or regions for this test." << std::endl;
CHECK_ERR( MB_FAILURE );
33 std::vector< double > coords( 3 * verts.
size() );
40 std::cout <<
"Mesh smoothed in " << ll.
num_its() <<
" iterations." << std::endl;
44 std::vector< double > new_coords( 3 * verts.
size() );
48 for( vit = verts.
begin(), i = 0; vit != verts.
end(); ++vit, i += 3 )
50 CartVect old_pos( &coords[i] ), new_pos( &new_coords[i] );
51 CartVect almost_pos = old_pos + .99 * ( new_pos - old_pos );
52 almost_pos.
get( &new_coords[i] );
59 std::cout <<
"Mesh smoothed in " << ll2.
num_its() <<
" iterations." << std::endl;