Skip to content

Commit

Permalink
ofPolyline: an overloaded version of bezierTo wasn't passing curveRes…
Browse files Browse the repository at this point in the history
…olution. Closes openframeworks#857
  • Loading branch information
arturoc committed Dec 30, 2011
1 parent af9614e commit 6ee9f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/graphics/ofPolyline.h
Expand Up @@ -48,7 +48,7 @@ class ofPolyline {
/// cubic bezier
void bezierTo( const ofPoint & cp1, const ofPoint & cp2, const ofPoint & to, int curveResolution = 16);
void bezierTo(float cx1, float cy1, float cx2, float cy2, float x, float y, int curveResolution=16){
bezierTo(ofPoint(cx1,cy1),ofPoint(cx2,cy2),ofPoint(x,y));
bezierTo(ofPoint(cx1,cy1),ofPoint(cx2,cy2),ofPoint(x,y),curveResolution);
}
void bezierTo(float cx1, float cy1, float cz1, float cx2, float cy2, float cz2, float x, float y, float z, int curveResolution=16){
bezierTo(ofPoint(cx1,cy1,cz1),ofPoint(cx2,cy2,cz2),ofPoint(x,y,z),curveResolution);
Expand Down

0 comments on commit 6ee9f51

Please sign in to comment.