This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofMeshFace_< V, N, C, T > Class Template Reference
An ofMeshFace_ is a face on one of the ofPrimitive instances. In the ofPrimitive a face consists of 3 points connected together. More...
#include <ofMesh.h>
Public Member Functions | |
ofMeshFace_ () | |
const N & | getFaceNormal () const |
void | setVertex (ofIndexType index, const V &v) |
const V & | getVertex (ofIndexType index) const |
void | setNormal (ofIndexType index, const N &n) |
const N & | getNormal (ofIndexType index) const |
void | setColor (ofIndexType index, const C &color) |
const C & | getColor (ofIndexType index) const |
void | setTexCoord (ofIndexType index, const T &tCoord) |
const T & | getTexCoord (ofIndexType index) const |
void | setHasColors (bool bColors) |
void | setHasNormals (bool bNormals) |
void | setHasTexcoords (bool bTexcoords) |
bool | hasColors () const |
bool | hasNormals () const |
bool | hasTexcoords () const |
Detailed Description
template<class V, class N, class C, class T>
class ofMeshFace_< V, N, C, T >
class ofMeshFace_< V, N, C, T >
An ofMeshFace_ is a face on one of the ofPrimitive instances. In the ofPrimitive a face consists of 3 points connected together.
You can get a vector of ofMeshFace_ instances from any ofPrimitive like so:
vector<ofMeshFace_> triangles = box.getMesh().getUniqueFaces();
They're very handy for manipulating individual vertices or doing strange/fun things with intersection and boundary testing, among many many other things.
this is always a triangle
Constructor & Destructor Documentation
◆ ofMeshFace_()
template<class V , class N , class C , class T >
ofMeshFace_< V, N, C, T >::ofMeshFace_ | ( | ) |
Member Function Documentation
◆ getColor()
template<class V , class N , class C , class T >
const C & ofMeshFace_< V, N, C, T >::getColor | ( | ofIndexType | index | ) | const |
◆ getFaceNormal()
template<class V , class N , class C , class T >
const N & ofMeshFace_< V, N, C, T >::getFaceNormal | ( | ) | const |
◆ getNormal()
template<class V , class N , class C , class T >
const N & ofMeshFace_< V, N, C, T >::getNormal | ( | ofIndexType | index | ) | const |
◆ getTexCoord()
template<class V , class N , class C , class T >
const T & ofMeshFace_< V, N, C, T >::getTexCoord | ( | ofIndexType | index | ) | const |
◆ getVertex()
template<class V , class N , class C , class T >
const V & ofMeshFace_< V, N, C, T >::getVertex | ( | ofIndexType | index | ) | const |
◆ hasColors()
template<class V , class N , class C , class T >
bool ofMeshFace_< V, N, C, T >::hasColors | ( | ) | const |
◆ hasNormals()
template<class V , class N , class C , class T >
bool ofMeshFace_< V, N, C, T >::hasNormals | ( | ) | const |
◆ hasTexcoords()
template<class V , class N , class C , class T >
bool ofMeshFace_< V, N, C, T >::hasTexcoords | ( | ) | const |
◆ setColor()
template<class V , class N , class C , class T >
void ofMeshFace_< V, N, C, T >::setColor | ( | ofIndexType | index, |
const C & | color | ||
) |
◆ setHasColors()
template<class V , class N , class C , class T >
void ofMeshFace_< V, N, C, T >::setHasColors | ( | bool | bColors | ) |
◆ setHasNormals()
template<class V , class N , class C , class T >
void ofMeshFace_< V, N, C, T >::setHasNormals | ( | bool | bNormals | ) |
◆ setHasTexcoords()
template<class V , class N , class C , class T >
void ofMeshFace_< V, N, C, T >::setHasTexcoords | ( | bool | bTexcoords | ) |
◆ setNormal()
template<class V , class N , class C , class T >
void ofMeshFace_< V, N, C, T >::setNormal | ( | ofIndexType | index, |
const N & | n | ||
) |
◆ setTexCoord()
template<class V , class N , class C , class T >
void ofMeshFace_< V, N, C, T >::setTexCoord | ( | ofIndexType | index, |
const T & | tCoord | ||
) |
◆ setVertex()
template<class V , class N , class C , class T >
void ofMeshFace_< V, N, C, T >::setVertex | ( | ofIndexType | index, |
const V & | v | ||
) |
The documentation for this class was generated from the following files:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/3d/ofMesh.h
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/3d/ofMesh.inl