some ideas in order to do this simulator please

hi everyone

I’m looking for some ideas in order to begin to code this simulator:

I want to do this in blender and not in bge

Actually I have the main bisector tools but the folding feature is breaking my brain

do you have some ideas in order to do this?:

I’m ask in #blender and #blendercode… and I’m searching about constraints and blender physics… but I feeling that I’m in the wrong way…

thanks for any idea

Diego