annealing/anneal.cpp
BOOL CheckTangent(int n, Curve<TVec> &c) {
return (c[n].isProper() && c[n].getPrevious().isProper());
/*
 if ((c[n].getPoint()-c.getPrevious(n).getPoint()).dot(c[n].getTangent()) <= 0)
   return FALSE;
 if((c.getNext(n).getPoint()-c[n].getPoint()).dot(c[n].getTangent()) <= 0)
   return FALSE;
 return TRUE;
*/
}
// XXX : Improve these checks!!!
//       after each change we have to recompute the biarc Midpoint!!!!
//       implement a routine that does that does the midpoint rule
//       for a single biarc
XXX : Improve these checks
after each change we have to recompute the biarc Midpoint
implement a routine that does that does the midpoint rule
for a single biarc
XXX : Improve these checks after each change we have to recompute the biarc Midpoint implement a routine that does that does the midpoint rule for a single biarc
BOOL CheckTangent(int n, Curve<TVec> &c) {
return (c[n].isProper() && c[n].getPrevious().isProper());
}
BOOL CheckTangent ( int n , Curve < TVec > & c ) { return ( c [ n ] . isProper ( ) && c [ n ] . getPrevious ( ) . isProper ( ) ) ; }
XXX : Improve these checks!!!
XXX : Improve these checks!!!
/*
 if ((c[n].getPoint()-c.getPrevious(n).getPoint()).dot(c[n].getTangent()) <= 0)
   return FALSE;
 if((c.getNext(n).getPoint()-c[n].getPoint()).dot(c[n].getTangent()) <= 0)
   return FALSE;
 return TRUE;
*/