MeshNS Namespace Reference

contains everything related to mesh, from the mesh itself to alorithm applied to mesh such as curvature. More...


Data Structures

class  MeshSequence
 This class encapsulates X Polyhedron to represent a mesh sequence. More...
struct  SimpleVertex
struct  SimpleFace
class  SimpleMesh
 A simple class which implement a very basic IFS mesh structure. More...

Typedefs

typedef
OpenMesh::PolyMesh_ArrayKernelT 
Polyhedron
typedef Polyhedron::Point Point
typedef Polyhedron::HalfedgeIter HalfEdgeIter
typedef Polyhedron::Halfedge Halfedge
typedef Polyhedron::Vertex Vertex
typedef Polyhedron::VertexIter VertexIter
typedef Polyhedron::ConstVertexIter ConstVertexIter
typedef Polyhedron::Face Face
typedef Polyhedron::FaceIter FaceIter
typedef Polyhedron::ConstFaceIter ConstFaceIter
typedef Polyhedron::EdgeIter EdgeIter
typedef Polyhedron::FaceVertexIter FaceVertexIter
typedef
Polyhedron::ConstFaceVertexIter 
ConstFaceVertexIter
typedef
Polyhedron::FaceHalfedgeIter 
FaceHalfEdgeIter
typedef
Polyhedron::ConstFaceHalfedgeIter 
ConstFaceHalfEdgeIter
typedef Polyhedron::Normal Normal
typedef boost::shared_ptr
< Polyhedron
PolyhedronPtr
typedef boost::shared_ptr
< MeshSequence
MeshSequencePtr
typedef std::vector< SimpleVertexSimpleVertices
typedef std::vector< SimpleFaceSimpleFaces

Enumerations

enum  RenderMode { smooth = 0, wire }
 Describe how to render a mesh. More...

Functions

void loadMesh (PolyhedronPtr p, std::vector< SimpleVertex > verts, std::vector< SimpleFace > faces)
void drawMesh (const Polyhedron &polyhedron, const RenderMode &mode, const std::vector< float > &color)
 draw the mesh with the specified color.
void drawMesh (const Polyhedron &polyhedron, const RenderMode &mode, bool setColor=true)
 draw the mesh.
void drawMeshWithVertexColor (const Polyhedron &polyhedron, const RenderMode &mode)
 draw the mesh using vertices color properties
Point v1 (const Polyhedron &p, const Polyhedron::Face &f)
 return the first point of a face.
Point v2 (const Polyhedron &p, const Polyhedron::Face &f)
 return the second point of a face.
Point v3 (const Polyhedron &p, const Polyhedron::Face &f)
 return the third point of a face.
Point vX (const Polyhedron &p, const Polyhedron::Face &f, int x)
 return the Xth point on the face


Detailed Description

contains everything related to mesh, from the mesh itself to alorithm applied to mesh such as curvature.

Todo:
split file on mesh structure, algorithm for mesh and mesh utilly function (such as draw)
Todo:
Create a real mesh class instead of typedef to store properties

Typedef Documentation

typedef Polyhedron::ConstFaceHalfedgeIter MeshNS::ConstFaceHalfEdgeIter

Todo:
add documentation

typedef Polyhedron::ConstFaceIter MeshNS::ConstFaceIter

Todo:
add documentation

typedef Polyhedron::ConstFaceVertexIter MeshNS::ConstFaceVertexIter

Todo:
add documentation

typedef Polyhedron::ConstVertexIter MeshNS::ConstVertexIter

Todo:
add documentation

typedef Polyhedron::EdgeIter MeshNS::EdgeIter

Todo:
add documentation

Todo:
add documentation

typedef Polyhedron::FaceHalfedgeIter MeshNS::FaceHalfEdgeIter

Todo:
add documentation

typedef Polyhedron::FaceIter MeshNS::FaceIter

Todo:
add documentation

typedef Polyhedron::FaceVertexIter MeshNS::FaceVertexIter

Todo:
add documentation

Todo:
add documentation

typedef Polyhedron::HalfedgeIter MeshNS::HalfEdgeIter

Bug:
Math::Point ?

Todo:
add documentation

Todo:
add documentation

typedef boost::shared_ptr<Polyhedron> MeshNS::PolyhedronPtr

Todo:
add documentation

Todo:
add documentation

typedef Polyhedron::VertexIter MeshNS::VertexIter

Todo:
add documentation


Enumeration Type Documentation

Describe how to render a mesh.

Enumerator:
smooth  smooth
wire  wireframe


Function Documentation

void MeshNS::drawMesh ( const Polyhedron &  polyhedron,
const RenderMode &  mode,
bool  setColor = true 
)

draw the mesh.

Parameters:
polyhedron : the mesh to render
mode : render in wireframe or smooth render
setColor : don't use color the default color

void MeshNS::drawMesh ( const Polyhedron &  polyhedron,
const RenderMode &  mode,
const std::vector< float > &  color 
)

draw the mesh with the specified color.

Parameters:
polyhedron : the mesh to render
mode : render in wireframe or smooth render
color : color to render.

void MeshNS::drawMeshWithVertexColor ( const Polyhedron &  polyhedron,
const RenderMode &  mode 
)

draw the mesh using vertices color properties

Parameters:
polyhedron : the mesh to render
mode : render in wireframe or smooth render
Todo:
implement

void MeshNS::loadMesh ( PolyhedronPtr  p,
std::vector< SimpleVertex >  verts,
std::vector< SimpleFace >  faces 
)

Todo:
template it on container

Point MeshNS::v1 ( const Polyhedron &  p,
const Polyhedron::Face &  f 
) [inline]

return the first point of a face.

Parameters:
p : Polydron on which to get the face
f : face on which to get the 1st point
Returns:
the first point of the face f
Warning:
This does NOT return the vertex
Todo:
add the equivalent function for vertex

Point MeshNS::v2 ( const Polyhedron &  p,
const Polyhedron::Face &  f 
) [inline]

return the second point of a face.

Parameters:
p : Polydron on which to get the face
f : face on which to get the 2nd point
Returns:
the second point of the face f
Warning:
This does NOT return the vertex
Todo:
add the equivalent function for vertex

Point MeshNS::v3 ( const Polyhedron &  p,
const Polyhedron::Face &  f 
) [inline]

return the third point of a face.

Parameters:
p : Polydron on which to get the face
f : face on which to get the 3rd point
Returns:
the third point of the face f
Warning:
This does NOT return the vertex
Todo:
add the equivalent function for vertex

Point MeshNS::vX ( const Polyhedron &  p,
const Polyhedron::Face &  f,
int  x 
) [inline]

return the Xth point on the face

Parameters:
p : Polydron on which to get the face
f : face on which to get the Xth point
x : number of the wanted point of the face
Returns:
the Xth point of the face f
Warning:
This does NOT return the vertex
Todo:
throw a real exception ...
Todo:
add the equivalent function for vertex


Generated on Fri Jan 16 13:00:33 2009 by  doxygen 1.5.5