cinder::TriMesh Class Reference

#include <TriMesh.h>

List of all members.

Public Member Functions

void clear ()
bool hasNormals () const
bool hasTexCoords () const
void appendVertex (const Vec3f &v)
void appendVertices (const Vec4d *verts, size_t num)
void appendNormal (const Vec3f &v)
void appendNormals (const Vec4d *normals, size_t num)
void appendTexCoord (const Vec2f &v)
void appendTriangle (size_t v0, size_t v1, size_t v2)
size_t getNumIndices () const
size_t getNumTriangles () const
size_t getNumVertices () const
void getTriangleVertices (size_t idx, Vec3f *a, Vec3f *b, Vec3f *c) const
 Puts the 3 vertices of triangle number idx into a, b and c.
const std::vector< Vec3f > & getVertices () const
const std::vector< Vec3f > & getNormals () const
const std::vector< Vec2f > & getTexCoords () const
const std::vector< size_t > & getIndices () const
AxisAlignedBox3f calcBoundingBox () const
 Calculates the bounding box of all vertices.
AxisAlignedBox3f calcBoundingBox (const Matrix44f &transform) const
 Calculates the bounding box of all vertices as transformed by transform.
void read (DataSourceRef in)
void write (DataTargetRef out) const

Member Function Documentation

void cinder::TriMesh::clear (  ) 
bool cinder::TriMesh::hasNormals (  )  const
bool cinder::TriMesh::hasTexCoords (  )  const
void cinder::TriMesh::appendVertex ( const Vec3f v  ) 
void cinder::TriMesh::appendVertices ( const Vec4d verts,
size_t  num 
)
void cinder::TriMesh::appendNormal ( const Vec3f v  ) 
void cinder::TriMesh::appendNormals ( const Vec4d normals,
size_t  num 
)
void cinder::TriMesh::appendTexCoord ( const Vec2f v  ) 
void cinder::TriMesh::appendTriangle ( size_t  v0,
size_t  v1,
size_t  v2 
)
size_t cinder::TriMesh::getNumIndices (  )  const
size_t cinder::TriMesh::getNumTriangles (  )  const
size_t cinder::TriMesh::getNumVertices (  )  const
void cinder::TriMesh::getTriangleVertices ( size_t  idx,
Vec3f a,
Vec3f b,
Vec3f c 
) const

Puts the 3 vertices of triangle number idx into a, b and c.

const std::vector<Vec3f>& cinder::TriMesh::getVertices (  )  const
const std::vector<Vec3f>& cinder::TriMesh::getNormals (  )  const
const std::vector<Vec2f>& cinder::TriMesh::getTexCoords (  )  const
const std::vector<size_t>& cinder::TriMesh::getIndices (  )  const
AxisAlignedBox3f cinder::TriMesh::calcBoundingBox (  )  const

Calculates the bounding box of all vertices.

AxisAlignedBox3f cinder::TriMesh::calcBoundingBox ( const Matrix44f transform  )  const

Calculates the bounding box of all vertices as transformed by transform.

void cinder::TriMesh::read ( DataSourceRef  in  ) 
void cinder::TriMesh::write ( DataTargetRef  out  )  const

The documentation for this class was generated from the following files: