Heuristic feature recognition from a CAD model