#include <GeomIo.h>
Inherits cinder::geom::Source.
cinder::geom::Extrude::Extrude |
( |
const Shape2d & |
shape, |
|
|
float |
distance, |
|
|
float |
approximationScale = 1.0f |
|
) |
| |
Extrude& cinder::geom::Extrude::distance |
( |
float |
dist | ) |
|
Sets the distance of extrusion along the axis.
Extrude& cinder::geom::Extrude::caps |
( |
bool |
caps | ) |
|
Enables or disables front and back caps. Enabled by default.
Extrude& cinder::geom::Extrude::frontCap |
( |
bool |
cap | ) |
|
Enables or disables front cap. Enabled by default.
Extrude& cinder::geom::Extrude::backCap |
( |
bool |
cap | ) |
|
Enables or disables back cap. Enabled by default.
Extrude& cinder::geom::Extrude::subdivisions |
( |
int |
sub | ) |
|
Sets the number of subdivisions along the axis of extrusion.
size_t cinder::geom::Extrude::getNumVertices |
( |
| ) |
const |
|
overridevirtual |
size_t cinder::geom::Extrude::getNumIndices |
( |
| ) |
const |
|
overridevirtual |
Primitive cinder::geom::Extrude::getPrimitive |
( |
| ) |
const |
|
overridevirtual |
uint8_t cinder::geom::Extrude::getAttribDims |
( |
Attrib |
attr | ) |
const |
|
overridevirtual |
AttribSet cinder::geom::Extrude::getAvailableAttribs |
( |
| ) |
const |
|
overridevirtual |
void cinder::geom::Extrude::loadInto |
( |
Target * |
target, |
|
|
const AttribSet & |
requestedAttribs |
|
) |
| const |
|
overridevirtual |
Extrude* cinder::geom::Extrude::clone |
( |
| ) |
const |
|
overridevirtual |
void cinder::geom::Extrude::updatePathSubdivision |
( |
| ) |
|
|
protected |
void cinder::geom::Extrude::calculate |
( |
std::vector< vec3 > * |
positions, |
|
|
std::vector< vec3 > * |
normals, |
|
|
std::vector< vec3 > * |
texCoords, |
|
|
std::vector< uint32_t > * |
indices |
|
) |
| const |
|
protected |
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 |
std::vector<Path2d> cinder::geom::Extrude::mPaths |
|
protected |
float cinder::geom::Extrude::mApproximationScale |
|
protected |
float cinder::geom::Extrude::mDistance |
|
protected |
bool cinder::geom::Extrude::mFrontCap |
|
protected |
bool cinder::geom::Extrude::mBackCap |
|
protected |
int cinder::geom::Extrude::mSubdivisions |
|
protected |
std::shared_ptr<TriMesh> cinder::geom::Extrude::mCap |
|
protected |
Rectf cinder::geom::Extrude::mCapBounds |
|
protected |
std::vector<std::vector<vec2> > cinder::geom::Extrude::mPathSubdivisionPositions |
|
protected |
std::vector<std::vector<vec2> > cinder::geom::Extrude::mPathSubdivisionTangents |
|
protected |
The documentation for this class was generated from the following files: