Bugfix of3 d primitives resolutions

Fixes #2941. And is in response to https://github.com/openframeworks/openFrameworks/pull/3093#issuecomment-49841874.

Recalculated the vertex and index strides for of3DPrimitives so the setColor and getMesh functions for ofConePrimitive, ofBoxPrimitive and ofCylinderPrimitive work as expected.


They are unnecessary. Just an oversight.

Typed on a tiny keyboard

> On Jul 29, 2014, at 3:38 AM, Christoph Buchner <notifications@github.com> wrote:
> 
> In libs/openFrameworks/3d/of3dPrimitives.cpp:
> 
> > @@ -520,9 +520,9 @@ void ofCylinderPrimitive::set(float _radius, float _height, int radiusSegments,
> >      
> >      // 0 -> top cap
> >      strides[0][0] = 0;
> > -    strides[0][1] = resX * resZ * indexStep;
> > +    strides[0][1] = resX * (resZ) * indexStep;
> is the parens around resZ an oversight/error (missing +1 or so), because right now it doesn't do anything. same a bit further down.
> 
> —
> Reply to this email directly or view it on GitHub.