greedy.js
function compileMesher(options) {
  options = options || {}
  if(!options.order) {
    throw new Error("greedy-mesher: Missing order field")
  }
  if(!options.append) {
    throw new Error("greedy-mesher: Missing append field")
  }
  return generateMesher(
    options.order,
    options.skip,
    options.merge,
    options.append,
    options.extraArgs|0,
    options,
    !!options.useGetter
  )
}
function compileMesher(options) {
  options = options || {}
  if(!options.order) {
    throw new Error("greedy-mesher: Missing order field")
  }
  if(!options.append) {
    throw new Error("greedy-mesher: Missing append field")
  }
  return generateMesher(
    options.order,
    options.skip,
    options.merge,
    options.append,
    options.extraArgs|0,
    options,
    !!options.useGetter
  )
}
function compileMesher ( options ) { options = options || { } if ( ! options . order ) { throw new Error ( "greedy-mesher: Missing order field" ) } if ( ! options . append ) { throw new Error ( "greedy-mesher: Missing append field" ) } return generateMesher ( options . order , options . skip , options . merge , options . append , options . extraArgs | 0 , options , ! ! options . useGetter ) }
The actual mesh compiler
The actual mesh compiler