mesh3d Namespace Reference
[Mesh3D utility library]

Namespaces

namespace  detail

Data Structures

class  attribute_map_base
class  attribute_map
 contains attributes (like positions, normals, texcoords) for keys (polygon, point, corner) More...
class  attribute_map_collection
 collection of attribute maps for specific key type More...
class  corner
 corner of polygon, connected to one point More...
struct  attribute_map_not_found_exception
struct  incompatible_attribute_type_exception
struct  invalid_index_exception
struct  key_not_found_exception
class  geometry
 collection of points, polygons, corners and their attributes More...
class  point
 connects to polygons through their corners More...
class  polygon
 connects to points through corners More...
class  vec2
 simple two component float vector More...
class  vec3
 simple three component float vector More...

Typedefs

typedef size_t index_type
typedef __int32 uint32

Functions

float dot (vec2 const &v1, vec2 const &v2)
vec2 normalize (vec2 const &v)
float dot (vec3 const &v1, vec3 const &v2)
vec3 cross (vec3 const &v1, vec3 const &v2)
vec3 normalize (vec3 const &v)

Typedef Documentation

typedef size_t mesh3d::index_type

Definition at line 38 of file attribute_map.h.

typedef __int32 mesh3d::uint32

Definition at line 39 of file attribute_map.h.


Function Documentation

float mesh3d::dot ( vec2 const &  v1,
vec2 const &  v2 
) [inline]

Definition at line 122 of file vec2.h.

00123 {
00124     return v1.x * v2.x + v1.y * v2.y;
00125 }

vec2 mesh3d::normalize ( vec2 const &  v  )  [inline]

Definition at line 127 of file vec2.h.

00128 {
00129     return v / v.length();
00130 }

float mesh3d::dot ( vec3 const &  v1,
vec3 const &  v2 
) [inline]

Definition at line 129 of file vec3.h.

00130 {
00131     return v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;
00132 }

vec3 mesh3d::cross ( vec3 const &  v1,
vec3 const &  v2 
) [inline]

Definition at line 134 of file vec3.h.

00135 {
00136     return vec3(
00137         (v1.y * v2.z) - (v1.z * v2.y),
00138         (v1.z * v2.x) - (v1.x * v2.z),
00139         (v1.x * v2.y) - (v1.y * v2.x)
00140     );
00141 }

vec3 mesh3d::normalize ( vec3 const &  v  )  [inline]

Definition at line 143 of file vec3.h.

00144 {
00145     return v / v.length();
00146 }

Generated on Sun Apr 11 12:23:11 2010 for RenderStack by  doxygen 1.6.3