Add primitive triangle generation routines.