Use macros for line and triangles.