Updated triangle intersection wrapper to return code