48 std::cout <<
"Loaded a mesh containing: " << hex_range << std::endl;
64 std::cout << std::setw( 6 ) <<
"Handle" << std::setw( 10 ) <<
"X" << std::setw( 10 ) <<
"Y" << std::setw( 10 )
67 for( iter = connectivity.
begin(); iter != connectivity.
end(); ++iter )
73 std::cout << std::setw( 6 ) << *iter << std::setw( 10 ) << coord[0] << std::setw( 10 ) << coord[1]
74 << std::setw( 10 ) << coord[2] << std::endl;
89 std::vector< double > vertex_coords( 3 * vertex_range.
size() );
93 const double PI = 3.14159265359;
94 const double ANGLE =
PI / 4;
95 for( iter = vertex_range.
begin(); iter != vertex_range.
end(); ++iter )
99 double x = vertex_coords[count + 0];
100 double y = vertex_coords[count + 1];
104 vertex_coords[count + 0] = x * std::cos( ANGLE ) - y * std::sin( ANGLE );
105 vertex_coords[count + 1] = x * std::sin( ANGLE ) + y * std::cos( ANGLE );