Triangle creation fixes for LOS.
Minor bug fix and cleanup.