tmapShape function

Internal method that processed shape objects