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...
when building ofxBox2d with the latest 0.9.0 master and VS 2015, i was getting a compiler error when initialising
mk[n]
sincen
is a variable and it needs to bestatic 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...