The PBFS are then added to a 'stack' of other planes if that plane stacks with one of the existing planes (according to the above criteria) and it is facing approximately the same direction as the stack (the angle between the average of the plane normals in the stack and the candidate plane normal less than 30 degrees).