![]() |
Cinder
0.9.1
|
#include <GeomIo.h>
Inherits cinder::geom::Source.
Public Member Functions | |
Teapot () | |
Teapot & | subdivisions (int sub) |
size_t | getNumVertices () const override |
size_t | getNumIndices () const override |
Primitive | getPrimitive () const override |
uint8_t | getAttribDims (Attrib attr) const override |
AttribSet | getAvailableAttribs () const override |
void | loadInto (Target *target, const AttribSet &requestedAttribs) const override |
Teapot * | clone () const override |
Protected Member Functions | |
void | calculate (std::vector< float > *positions, std::vector< float > *normals, std::vector< float > *texCoords, std::vector< uint32_t > *indices) const |
void | updateVertexCounts () |
void | copyIndicesNonIndexed (uint16_t *dest) const |
void | copyIndicesNonIndexed (uint32_t *dest) const |
template<typename T > | |
void | forceCopyIndicesTrianglesImpl (T *dest) const |
Static Protected Member Functions | |
static void | generatePatches (float *v, float *n, float *tc, uint32_t *el, int grid) |
static void | buildPatchReflect (int patchNum, float *B, float *dB, float *v, float *n, float *tc, unsigned int *el, int &index, int &elIndex, int &tcIndex, int grid, bool reflectX, bool reflectY) |
static void | buildPatch (vec3 patch[][4], float *B, float *dB, float *v, float *n, float *tc, unsigned int *el, int &index, int &elIndex, int &tcIndex, int grid, const mat3 reflect, bool invertNormal) |
static void | getPatch (int patchNum, vec3 patch[][4], bool reverseV) |
static void | computeBasisFunctions (float *B, float *dB, int grid) |
static vec3 | evaluate (int gridU, int gridV, const float *B, const vec3 patch[][4]) |
static vec3 | evaluateNormal (int gridU, int gridV, const float *B, const float *dB, const vec3 patch[][4]) |
Protected Attributes | |
int | mSubdivision |
size_t | mNumVertices |
size_t | mNumIndices |
Static Protected Attributes | |
static const uint8_t | sPatchIndices [][16] |
static const float | sCurveData [][3] |
cinder::geom::Teapot::Teapot | ( | ) |
Teapot & cinder::geom::Teapot::subdivisions | ( | int | sub | ) |
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protectedinherited |
Builds a sequential list of vertices to simulate an indexed geometry when Source is non-indexed. Assumes dest contains storage for getNumVertices() entries.
|
protectedinherited |
Builds a sequential list of vertices to simulate an indexed geometry when Source is non-indexed. Assumes dest contains storage for getNumVertices() entries.
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |