bool LabelPosition::pruneCallback( LabelPosition *lp, void *ctx ) { PointSet *feat = (( PruneCtx* ) ctx )->obstacle; if (( feat == lp->feature ) || ( feat->getHoleOf() && feat->getHoleOf() != lp->feature ) ) { return true; } CostCalculator::addObstacleCostPenalty( lp, feat ); return true; }