#include <GeomIo.h>
Inherits cinder::geom::Cylinder.
|
void | updateCounts () |
|
void | calculate (std::vector< vec3 > *positions, std::vector< vec3 > *normals, std::vector< vec2 > *texCoords, std::vector< vec3 > *colors, std::vector< uint32_t > *indices) const |
|
void | calculateCap (bool flip, float height, float radius, std::vector< vec3 > *positions, std::vector< vec3 > *normals, std::vector< vec2 > *texCoords, std::vector< vec3 > *colors, std::vector< uint32_t > *indices) const |
|
void | copyIndicesNonIndexed (uint16_t *dest) const |
|
void | copyIndicesNonIndexed (uint32_t *dest) const |
|
template<typename T > |
void | forceCopyIndicesTrianglesImpl (T *dest) const |
|
cinder::geom::Cone::Cone |
( |
| ) |
|
Cone& cinder::geom::Cone::colors |
( |
bool |
enable = true | ) |
|
Enables colors. Disabled by default.
Cone& cinder::geom::Cone::origin |
( |
const vec3 & |
origin | ) |
|
Cone& cinder::geom::Cone::subdivisionsAxis |
( |
int |
subdiv | ) |
|
Specifies the number of radial subdivisions, which determines the roundness of the Cone. Defaults to 18
.
Cone& cinder::geom::Cone::subdivisionsHeight |
( |
int |
subdiv | ) |
|
Specifies the number of subdivisions along the Cone's height. Defaults to 1
.
Cone& cinder::geom::Cone::height |
( |
float |
height | ) |
|
Cone& cinder::geom::Cone::radius |
( |
float |
radius | ) |
|
Specifies the base and apex radius.
Cone& cinder::geom::Cone::base |
( |
float |
base | ) |
|
Specifies the base radius.
Cone& cinder::geom::Cone::apex |
( |
float |
apex | ) |
|
Specifies the apex radius.
Cone& cinder::geom::Cone::ratio |
( |
float |
ratio | ) |
|
Specifies the base radius as a ratio of the height. A value of 1.0f yields a cone angle of 45 degrees.
Cone& cinder::geom::Cone::radius |
( |
float |
base, |
|
|
float |
apex |
|
) |
| |
Specifies the base and apex radius separately.
Cone& cinder::geom::Cone::direction |
( |
const vec3 & |
direction | ) |
|
Cone& cinder::geom::Cone::set |
( |
const vec3 & |
from, |
|
|
const vec3 & |
to |
|
) |
| |
Conveniently sets origin, height and direction.
Cylinder& cinder::geom::Cylinder::subdivisionsCap |
( |
int |
rings | ) |
|
|
inherited |
Specifies the number of rings for the Cylinder's cap. Defaults to 3
.
size_t cinder::geom::Cylinder::getNumVertices |
( |
| ) |
const |
|
overridevirtualinherited |
size_t cinder::geom::Cylinder::getNumIndices |
( |
| ) |
const |
|
overridevirtualinherited |
Primitive cinder::geom::Cylinder::getPrimitive |
( |
| ) |
const |
|
overridevirtualinherited |
uint8_t cinder::geom::Cylinder::getAttribDims |
( |
Attrib |
attr | ) |
const |
|
overridevirtualinherited |
AttribSet cinder::geom::Cylinder::getAvailableAttribs |
( |
| ) |
const |
|
overridevirtualinherited |
void cinder::geom::Cylinder::loadInto |
( |
Target * |
target, |
|
|
const AttribSet & |
requestedAttribs |
|
) |
| const |
|
overridevirtualinherited |
Cylinder* cinder::geom::Cylinder::clone |
( |
| ) |
const |
|
overridevirtualinherited |
void cinder::geom::Cylinder::updateCounts |
( |
| ) |
|
|
protectedinherited |
void cinder::geom::Cylinder::calculate |
( |
std::vector< vec3 > * |
positions, |
|
|
std::vector< vec3 > * |
normals, |
|
|
std::vector< vec2 > * |
texCoords, |
|
|
std::vector< vec3 > * |
colors, |
|
|
std::vector< uint32_t > * |
indices |
|
) |
| const |
|
protectedinherited |
void cinder::geom::Cylinder::calculateCap |
( |
bool |
flip, |
|
|
float |
height, |
|
|
float |
radius, |
|
|
std::vector< vec3 > * |
positions, |
|
|
std::vector< vec3 > * |
normals, |
|
|
std::vector< vec2 > * |
texCoords, |
|
|
std::vector< vec3 > * |
colors, |
|
|
std::vector< uint32_t > * |
indices |
|
) |
| const |
|
protectedinherited |
void cinder::geom::Source::copyIndicesNonIndexed |
( |
uint16_t * |
dest | ) |
const |
|
protectedinherited |
Builds a sequential list of vertices to simulate an indexed geometry when Source is non-indexed. Assumes dest contains storage for getNumVertices() entries.
void cinder::geom::Source::copyIndicesNonIndexed |
( |
uint32_t * |
dest | ) |
const |
|
protectedinherited |
Builds a sequential list of vertices to simulate an indexed geometry when Source is non-indexed. Assumes dest contains storage for getNumVertices() entries.
template<typename T >
void cinder::geom::Source::forceCopyIndicesTrianglesImpl |
( |
T * |
dest | ) |
const |
|
protectedinherited |
vec3 cinder::geom::Cylinder::mOrigin |
|
protectedinherited |
float cinder::geom::Cylinder::mHeight |
|
protectedinherited |
vec3 cinder::geom::Cylinder::mDirection |
|
protectedinherited |
float cinder::geom::Cylinder::mRadiusBase |
|
protectedinherited |
float cinder::geom::Cylinder::mRadiusApex |
|
protectedinherited |
int cinder::geom::Cylinder::mSubdivisionsAxis |
|
protectedinherited |
int cinder::geom::Cylinder::mSubdivisionsHeight |
|
protectedinherited |
int cinder::geom::Cylinder::mSubdivisionsCap |
|
protectedinherited |
bool cinder::geom::Cylinder::mHasColors |
|
protectedinherited |
int cinder::geom::Cylinder::mNumSegments |
|
protectedinherited |
int cinder::geom::Cylinder::mNumSlices |
|
protectedinherited |
The documentation for this class was generated from the following file: