Rebuild flat panels of a polysurface?

Is there a function to rebuild the flat surfaces of a polysurface so that, starting with a polysurface as A, you get the B polysurface. ?

Rhino rebuild polysurface.3dm (786.9 KB)

Hi Alan,

have a look at these 2 commands:

http://docs.mcneel.com/rhino/5/help/en-us/commands/mergeface.htm

http://docs.mcneel.com/rhino/5/help/en-us/commands/mergeallfaces.htm

-Willem

Perfect ! Thanks