Interlocking pyramid. need to know how to extend each of the pyramidal surface in both direction

I HAVE TRIANGULATED THE SURFACE AND EXTRUDED TO A POINT AND MADE A PYRAMID.
NOW I HAVE TO EXTEND THE EDGE OF THE SURFACE AND INTERLOCK WITH ADJACENT EXTENDING SURFACE OF ANOTHER PYRAMID.

interlocking pyramids n puncture in corners.gh (41.2 KB)

I AM DOING IN A LONG METHOD, CAN ANYONE SUGGEST A SMART WAY TO DO IT.