update draw triangle