Functional triangle generation.