Intersect_with returning different no of edges on multiple attempts with same model

I am drawing a new bottom face of a dormer to a roof face. However I am getting overlapped faces with the existing roof face, and when I use “intersect_with” method, it is returning different no of edges at different attempts. Please help

This has been brought up previously …

When posting issues for review please attach a example model and reproducible code snippet.

Forum Search: Search results for '#developers:ruby-api intersect_with' - SketchUp Community

Thanks Dan, What I need is to get the two separate faces for roof and for dormer. I tried to explode the group with faces, but got the face of dormer removed, only roof face remains. Please give any suggestion

Repeating …