ortho.js
function reflexRight(right, p, i0, i1) {
    for(var i=i0; i<i1; ++i) {
      var a = right[i]
      var b = right[i+1]
      if(orient(p, a, b) <= 0) {
        cells.push([p[2], a[2], b[2]])
      } else {
        return i
      }
    }
    return i1
  }
function reflexRight(right, p, i0, i1) {
    for(var i=i0; i<i1; ++i) {
      var a = right[i]
      var b = right[i+1]
      if(orient(p, a, b) <= 0) {
        cells.push([p[2], a[2], b[2]])
      } else {
        return i
      }
    }
    return i1
  }
function reflexRight ( right , p , i0 , i1 ) { for ( var i = i0 ; i < i1 ; ++ i ) { var a = right [ i ] var b = right [ i + 1 ] if ( orient ( p , a , b ) <= 0 ) { cells . push ( [ p [ 2 ] , a [ 2 ] , b [ 2 ] ] ) } else { return i } } return i1 }
Remove all right reflex vertices starting from p
Remove all right reflex vertices starting from p