GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


border algorithm by eddeighton


eddeighton's current picture:



1
 
///un optimised but basically computes an expanded border for a 2d polygon - only works for small width however

//attached images shows working for basic polygon

//but as width is increased border crosses over itself

void getBorder(vector<Point3>& points,vector<Point3>& brd)
{