vanderlin / ofxBox2d

Openframework wrapper for box2d
zlib License
320 stars 122 forks source link

ofxBox2dPolygonUtil simplifyContour fix #94

Closed julapy closed 9 years ago

julapy commented 9 years ago

when building ofxBox2d with the latest 0.9.0 master and VS 2015, i was getting a compiler error when initialising mk[n] since n is a variable and it needs to be static const.

but what i realised was that the simplifyContour code was added to ofPolyline a while ago, so instead of having the same code in two different places, ive made it so the simplifyContour method uses ofPolyline to do these calculations instead. everything else is the same...

kylemcdonald commented 9 years ago

thanks!