Virtual Testbed
Ship dynamics simulator for extreme conditions
src
vtestbed
graphics
MeshDatabase.hh
1
#ifndef VTESTBED_GRAPHICS_MESHDATABASE_HH
2
#define VTESTBED_GRAPHICS_MESHDATABASE_HH
3
4
#include <vtestbed/geometry/polyhedron.hh>
5
6
namespace
vtb
{
7
8
namespace
graphics {
9
10
template
<
class
T>
11
class
MeshDatabase
{
12
13
private
:
14
typedef
vtb::geometry::Polyhedron<T>
polyhedron_type
;
15
typedef
typename
polyhedron_type::vertex_array
vertex_array
;
16
typedef
typename
polyhedron_type::face_array
face_array
;
17
18
public
:
19
20
polyhedron_type
sphere(T radius);
21
polyhedron_type
cube(T scale);
22
polyhedron_type
nurbs_cylinder(T scale,
int
resolution);
23
polyhedron_type
nurbs_cube(T scale,
int
resolution);
24
polyhedron_type
nurbs_sphere(T scale,
int
resolution);
25
26
};
27
28
}
29
30
}
31
32
#endif // vim:filetype=cpp
vtb::graphics::MeshDatabase
Definition:
MeshDatabase.hh:11
vtb
Main namespace.
Definition:
convert.hh:9
std::vector< vertex_type >
vtb::geometry::Polyhedron< T >
Generated by
1.8.15