Experts Exchange connects you with the people and services you need so you can get back to work.
Improve company productivity with a Business Account.Sign Up
Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
void RoundPolygonVertices( VERTEXES& vcVertexes, double dRound )
long lCount = vcVertexes.size();
for( int i = 0; i < lCount; ++i )
double dLength = Magnitude(vcVertexes[i], vcVertexes[i-1]);
if( dLength > 0.0 && dRound > 0.0 )
if(fmod( dLength, dRound) > 0)
double dUpper, dLower;
dLower = floor(dLength / dRound) * dRound;
dUpper = dLower+dRound;
if((dLength-dLower) >= (dUpper-dLength))
vt.push_back( v0 );
vcVertexes.insert( vcVertexes.begin(), vt.begin(), vt.end() );
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.