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< SimpleVertex > | SimpleVertices |
typedef std::vector< SimpleFace > | SimpleFaces |
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 |
typedef Polyhedron::ConstFaceHalfedgeIter MeshNS::ConstFaceHalfEdgeIter |
typedef Polyhedron::ConstFaceIter MeshNS::ConstFaceIter |
typedef Polyhedron::ConstFaceVertexIter MeshNS::ConstFaceVertexIter |
typedef Polyhedron::ConstVertexIter MeshNS::ConstVertexIter |
typedef Polyhedron::EdgeIter MeshNS::EdgeIter |
typedef Polyhedron::Face MeshNS::Face |
typedef Polyhedron::FaceHalfedgeIter MeshNS::FaceHalfEdgeIter |
typedef Polyhedron::FaceIter MeshNS::FaceIter |
typedef Polyhedron::FaceVertexIter MeshNS::FaceVertexIter |
typedef Polyhedron::Halfedge MeshNS::Halfedge |
typedef Polyhedron::HalfedgeIter MeshNS::HalfEdgeIter |
typedef Polyhedron::Normal MeshNS::Normal |
typedef Polyhedron::Point MeshNS::Point |
typedef boost::shared_ptr<Polyhedron> MeshNS::PolyhedronPtr |
typedef Polyhedron::Vertex MeshNS::Vertex |
typedef Polyhedron::VertexIter MeshNS::VertexIter |
enum MeshNS::RenderMode |
void MeshNS::drawMesh | ( | const Polyhedron & | polyhedron, | |
const RenderMode & | mode, | |||
bool | setColor = true | |||
) |
draw the mesh.
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.
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
polyhedron | : the mesh to render | |
mode | : render in wireframe or smooth render |
void MeshNS::loadMesh | ( | PolyhedronPtr | p, | |
std::vector< SimpleVertex > | verts, | |||
std::vector< SimpleFace > | faces | |||
) |
Point MeshNS::v1 | ( | const Polyhedron & | p, | |
const Polyhedron::Face & | f | |||
) | [inline] |
return the first point of a face.
p | : Polydron on which to get the face | |
f | : face on which to get the 1st point |
Point MeshNS::v2 | ( | const Polyhedron & | p, | |
const Polyhedron::Face & | f | |||
) | [inline] |
return the second point of a face.
p | : Polydron on which to get the face | |
f | : face on which to get the 2nd point |
Point MeshNS::v3 | ( | const Polyhedron & | p, | |
const Polyhedron::Face & | f | |||
) | [inline] |
return the third point of a face.
p | : Polydron on which to get the face | |
f | : face on which to get the 3rd point |
Point MeshNS::vX | ( | const Polyhedron & | p, | |
const Polyhedron::Face & | f, | |||
int | x | |||
) | [inline] |
return the Xth point on the face
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 |