triangulating and adding shapes rather than line segments