#include <GeomIo.h>
Inherits cinder::geom::Source.
cinder::geom::ExtrudeSpline::ExtrudeSpline |
( |
const Shape2d & |
shape, |
|
|
const ci::BSpline< 3, float > & |
spline, |
|
|
int |
splineSubdivisions = 10 , |
|
|
float |
approximationScale = 1.0f |
|
) |
| |
Enables or disables front and back caps. Enabled by default.
Enables or disables front cap. Enabled by default.
Enables or disables back cap. Enabled by default.
ExtrudeSpline& cinder::geom::ExtrudeSpline::subdivisions |
( |
int |
sub | ) |
|
Sets the number of subdivisions along the axis of extrusion.
size_t cinder::geom::ExtrudeSpline::getNumVertices |
( |
| ) |
const |
|
overridevirtual |
size_t cinder::geom::ExtrudeSpline::getNumIndices |
( |
| ) |
const |
|
overridevirtual |
Primitive cinder::geom::ExtrudeSpline::getPrimitive |
( |
| ) |
const |
|
overridevirtual |
uint8_t cinder::geom::ExtrudeSpline::getAttribDims |
( |
Attrib |
attr | ) |
const |
|
overridevirtual |
AttribSet cinder::geom::ExtrudeSpline::getAvailableAttribs |
( |
| ) |
const |
|
overridevirtual |
void cinder::geom::ExtrudeSpline::loadInto |
( |
Target * |
target, |
|
|
const AttribSet & |
requestedAttribs |
|
) |
| const |
|
overridevirtual |
void cinder::geom::ExtrudeSpline::updatePathSubdivision |
( |
| ) |
|
|
protected |
void cinder::geom::ExtrudeSpline::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::ExtrudeSpline::mPaths |
|
protected |
std::vector<mat4> cinder::geom::ExtrudeSpline::mSplineFrames |
|
protected |
std::vector<float> cinder::geom::ExtrudeSpline::mSplineTimes |
|
protected |
float cinder::geom::ExtrudeSpline::mApproximationScale |
|
protected |
bool cinder::geom::ExtrudeSpline::mFrontCap |
|
protected |
bool cinder::geom::ExtrudeSpline::mBackCap |
|
protected |
int cinder::geom::ExtrudeSpline::mSubdivisions |
|
protected |
std::shared_ptr<TriMesh> cinder::geom::ExtrudeSpline::mCap |
|
protected |
Rectf cinder::geom::ExtrudeSpline::mCapBounds |
|
protected |
std::vector<std::vector<vec2> > cinder::geom::ExtrudeSpline::mPathSubdivisionPositions |
|
protected |
std::vector<std::vector<vec2> > cinder::geom::ExtrudeSpline::mPathSubdivisionTangents |
|
protected |
The documentation for this class was generated from the following files: