Capping of irregular shapes

Hello, I have made some code that projects certain tiles (organic shapes) onto my floors in Grasshopper and Rhino 8. That works fine, but the issue is now I am trying to go further with this and i am using the floors that have different inclination (they are all 1.5% inclined but in different directions) and therefore some tiles are being split in half and they need to be capped also like other (currently since they are cut they are missing the top surface due to the different planes they are sitting on). Is there a way to do this using grasshopper? I am attaching the screenshots to better demonstrate my intention.

you can see that the tiles sitting on the transition lines between planes with different inclinations are not finished with the top surface. What i want in the end as the output is for the tiles that are located on these transition lines to be split and capped separately.

Here is my Rhino 8 file: SwissTransfer - Send large files securely and free of charge (it is too large for me to upload it directly here, sorry for that).

Caps have to be planar surfaces. You’ll have to split the tiles that don’t have flat tops into 2 and then cap each half.

Thank you for your response. Indeed I realised that they need to be planar I was just wondering is there a quicker way via grasshopper to do so to avoid doing all the tiles cutting and capping manually?

My guess is there is - possibly with some add-on routine I don’t know about. Hopefully someone else here will be able to provide such a solution.

extrude to highest point, then trim with inclined plane

Thank you - this actually sounds like it could work, ill try to do that!