Implement triangle splitting