Changed direct triangle generation function - same outcome