Remove unnecessary line.
Move triangle generation code to own ns.