diff options
Diffstat (limited to 'gui/src/lineTransformer.cpp')
| -rw-r--r-- | gui/src/lineTransformer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/src/lineTransformer.cpp b/gui/src/lineTransformer.cpp index a21d020..080eb9d 100644 --- a/gui/src/lineTransformer.cpp +++ b/gui/src/lineTransformer.cpp @@ -1,5 +1,6 @@ #include "lineTransformer.h" + void lineTransformer::drawWarpFrame(glm::vec2 warpframe[4]){ ofSetColor(255,255,255); ofNoFill(); @@ -97,6 +98,15 @@ ofPolyline lineTransformer::polyLineTransform(const ofMatrix4x4 xform, const ofP return tempPoly; } +colourPolyline lineTransformer::polyLineTransform(const ofMatrix4x4 xform,colourPolyline& poly){ + colourPolyline tempPoly; + for (int i=0;i<poly.size();i++){ + tempPoly.addVertex(ofVec3f(poly[i])*xform,poly.getColourAt(i)); + } + return tempPoly; +} + + ofPolyline lineTransformer::makePolygon(int num,float diam){ ofPolyline poly; float step=PI*2/num; |
