Intersect Faces with - Model vs. Selection

I think the edges you count as being missing are where SketchUp doesn’t see any intersections, so doesn’t add an edge. The top of your block is in the same plane as the top sloping face of the rafter, so no intersection. The same goes for the side face of the rafter being co-planar with the end of your block.

You’ll have a bit of manual tidying up with intersect faces but it gives you the important edges where they intersect to work from.