/*synfig::warning("Spherize: Bounding box (%f,%f)-(%f,%f)",
expandr.minx,expandr.miny,expandr.maxx,expandr.maxy);*/
- //now that we have the bouding rectangle of ALL the pixels (should be...)
+ //now that we have the bounding rectangle of ALL the pixels (should be...)
//order it so that it's in the same orientation as the tl,br pair
//synfig::warning("Spherize: Organize like tl,br");
//Curve curve intersection
void CIntersect::recurse_intersect(const SCurve &left, const SCurve &right, int depth)
{
- //reject curves that do not overlap with bouding boxes
+ //reject curves that do not overlap with bounding boxes
if(!intersect(left.aabb,right.aabb)) return;
//accept curves (and perform super detailed check for intersections)
Performance annoyances:
1) Recursing down to find an intersection at the end points that doesn't actually exist
- (can be helped a bit by not including the edges of bouding rectaingles)
+ (can be helped a bit by not including the edges of bounding rectaingles)
2) Intersecting curves is slow... oh well
Algorithm: